Skip to content
Tinbox

CLI command

tinbox update-draft

Edit an existing draft with compare-and-swap baseVersion. Use get_draft first to review its complete body and saved followUp. Omit followUp to preserve it, pass {afterDays,body} to replace it, or explicit null to remove it. Editing never sends or schedules a timer. On conflict, read again and reconcile rather than blindly retry.

Generated from tool: update_draft

Usage

sh
tinbox update-draft --id <id> --baseVersion <baseVersion> --subject <subject> --bodyText <bodyText> --followUp <followUp>

Flags

NameTypeRequiredDefaultDescription
--idstringyes—The draft id.
--baseVersionstringyes—The version you read before editing.
--subjectstringyes—subject
--bodyTextstringyes—bodyText
--followUpstringyes—Omit to preserve the saved plan; {afterDays,body} replaces it; explicit null clears it. Draft body may be unfinished; actual send validates strictly.