bird whatsapp templates update
Usage
代码示例
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
代码示例
# print the body shape (no credentials needed)
bird whatsapp templates update --example
# the body it prints:代码示例
{
"default_language": "en",
"name": "Order update",
"on_missing_language": "fallback"
}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 |
Options
| Name | Description |
|---|---|
| --name | The template's display name. Editable at any time; it is not what a send references. |
| --description | What the template is for. Send null to clear it. |
| --default-language | The 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-language | How 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-required | Whether a send has to name a language. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp templates create | Create a WhatsApp template, optionally seeding its first draft |
| bird whatsapp templates delete | Delete a message template |
| bird whatsapp templates duplicate | Duplicate a message template |
| bird whatsapp templates get | Get a message template |
| bird whatsapp templates list | List available message templates |