Sign inGet started

bird whatsapp templates update

Usage

Exemplo de código
bird whatsapp templates update <template-ref> [flags]

Description

Update a message template
Changes a template's display name, description, and language policies. Only the fields you send change. The slug never moves, because it is what sends reference and what WhatsApp's own template name derives from, and the category never moves either. Nothing here reaches WhatsApp, and nothing here edits content: content lives on a language of the draft.
Build the request from flags, a JSON WhatsAppTemplateUpdate 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.

Examples

Exemplo de código
# print the body shape (no credentials needed)
bird whatsapp templates update --example

# the body it prints:
Exemplo de código
{
  "default_language": "en",
  "name": "Order update",
  "on_missing_language": "fallback"
}

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

Options

NameDescription
--nameThe template's display name. Editable at any time; it is not what a send references.
--descriptionWhat the template is for. Send null to clear it.
--default-languageThe language a send falls back to, and the one language the template is required to carry. Repointing it at a language the draft does not hold is refused, the same way removing the current default is: add the language first.
--on-missing-languageHow a send behaves when it asks for a language this template does not carry. Omitting it leaves the template's current setting alone. The fail default belongs to a create, and a partial update never reapplies it. Possible values: fallback, fail.
--language-source-requiredWhether a send has to name a language.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp templates createCreate a WhatsApp template, optionally seeding its first draft
bird whatsapp templates deleteDelete a message template
bird whatsapp templates duplicateDuplicate a message template
bird whatsapp templates getGet a message template
bird whatsapp templates listList available message templates