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
| Name | Required | Description |
|---|---|---|
id | yes | — |
Flags
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--base-version | string | yes | — | the version you read (the CAS guard) |
--subject | string | yes | — | new subject |
--text | string | yes | — | new plain-text body |
--html | string | yes | — | new HTML body |
--to | string | yes | — | recipient (repeatable) |
--cc | string | yes | — | cc (repeatable) |
--status | string | yes | — | draft | ready |
--stdin | boolean | no | — | read body from stdin |
--body-file | string | yes | — | read body from a file |
--markdown | boolean | no | — | treat body as markdown and convert to HTML |