bird whatsapp templates update
Usage
Przykład kodu
bird whatsapp templates update <template-ref> [flags]Description
Update a message template
Changes a template's display name, description, and language policies. The slug can change before the first submission; the old slug then stops resolving, while the template ID stays the same. Content is edited separately 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
Przykład kodu
# print the body shape (no credentials needed)
bird whatsapp templates update --example
# the body it prints:Przykład kodu
{
"default_language": "en",
"name": "Order update",
"on_missing_language": "fallback",
"slug": "welcome-email"
}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 |
|---|---|
| --slug | A new workspace-unique handle. Editable only before the first submission. After a change, the old slug no longer resolves; the template ID stays the same. |
| --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 |
Powiązane zasoby
Kontynuuj z dokumentacją, przewodnikami i przykładami dotyczącymi tego tematu. Zasoby są w języku angielskim.
Obejrzyj przewodnikBuilding and submitting a WhatsApp templateZrozum koncepcjęWhat is a WhatsApp message template?Poznaj możliwościWhatsApp templatesPodążaj ścieżką naukiBuild your first integration
Wypróbuj ćwiczenie i uzyskaj brief wdrożeniowy