bird whatsapp templates versions languages discard
Usage
Esempio di codice
bird whatsapp templates versions languages discard <template-ref> <version-id> <language> [flags]Description
Discard a language's draft edits back to its submitted copy
Restores one language of the draft to the copy it was branched from, discarding the edits made to it since. Only that language moves, which is what deleting the whole draft does not give you. A language the draft added, and a template that has never been submitted, have nothing to restore and are refused. Pass revision to make the discard a compare-and-set against the copy you read. Nothing reaches WhatsApp until the draft is submitted.
Build the request from flags, a JSON WhatsAppTemplateLanguageDiscard body via --body-file ("-" reads
stdin), or both — a flag overrides the matching body field. Run --example to
print a ready-to-edit body, or --dry-run to print the resolved request without
sending it.
This is destructive and cannot be undone; pass --yes to confirm.
Examples
Esempio di codice
# print the body shape (no credentials needed)
bird whatsapp templates versions languages discard --example
# the body it prints:Esempio di codice
{
"revision": 4
}Options
Request
| Name | Description |
|---|---|
| --body-file | Read the JSON request body from this file; "-" reads stdin |
| --example | Print a complete example request body, then exit |
| --dry-run | Print the resolved request without sending it, then exit |
| --idempotency-key | Deduplication key; a retry with the same key won't act twice |
Safety
| Name | Description |
|---|---|
| --yes | Confirm a destructive action (required; the CLI never prompts) |
Options
| Name | Description |
|---|---|
| --revision <n> | The revision you last read for this language, making the discard a compare-and-set: a mismatch is refused with a conflict, leaving an edit you have not seen in place. Omit it for last-write-wins, which is what a single writer wants. Supplying it for a language the draft no longer holds is also refused with a conflict: a stale token whose language was deleted underneath it must never silently get a fresh row. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp templates versions languages delete | Delete a language from the draft |
| bird whatsapp templates versions languages get | Get a version's language |
| bird whatsapp templates versions languages list | List a version's languages |
| bird whatsapp templates versions languages set | Write one language of a WhatsApp template's draft |