Sign inGet started

bird whatsapp templates versions languages discard

Usage

कोड उदाहरण
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

कोड उदाहरण
# print the body shape (no credentials needed)
bird whatsapp templates versions languages discard --example

# the body it prints:
कोड उदाहरण
{
  "revision": 4
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Safety

NameDescription
--yesConfirm a destructive action (required; the CLI never prompts)

Options

NameDescription
--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-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp templates versions languages deleteDelete a language from the draft
bird whatsapp templates versions languages getGet a version's language
bird whatsapp templates versions languages listList a version's languages
bird whatsapp templates versions languages setWrite one language of a WhatsApp template's draft