Skip to content

CLI command

tinbox draft update

Compare-and-swap edit a draft (409 → exit 1 + conflict JSON)

Usage

sh
tinbox draft update <id> --base-version <base-version> --subject <subject> --text <text> --html <html> --to <to> --cc <cc> --status <status> [--stdin] --body-file <body-file> [--markdown]

Arguments

NameRequiredDescription
idyes—

Flags

NameTypeRequiredDefaultDescription
--base-versionstringyes—the version you read (the CAS guard)
--subjectstringyes—new subject
--textstringyes—new plain-text body
--htmlstringyes—new HTML body
--tostringyes—recipient (repeatable)
--ccstringyes—cc (repeatable)
--statusstringyes—draft | ready
--stdinbooleanno—read body from stdin
--body-filestringyes—read body from a file
--markdownbooleanno—treat body as markdown and convert to HTML