Sign inGet started

bird whatsapp templates duplicate

Usage

Codebeispiel
bird whatsapp templates duplicate <template-ref> [flags]

Description

Duplicate a message template
Copies a template into a new one holding the source's current content as an open draft. It is how a built-in Bird template becomes something a workspace can edit, and how an approved template becomes the basis of a variant. The copy names the account it lands on rather than inheriting the source's, because a built-in template lives on Bird's own account. The copy calls WhatsApp zero times: it is a draft you submit when it is ready.
Build the request from flags, a JSON WhatsAppTemplateDuplicate 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

Codebeispiel
# print the body shape (no credentials needed)
bird whatsapp templates duplicate --example

# the body it prints:
Codebeispiel
{
  "default_language": "pt-BR",
  "include_languages": ["pt-BR", "es-ES"],
  "slug": "acme_order_update",
  "waba": "102290129340398"
}

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
--wabaThe WhatsApp Business Account the copy is created on. A template belongs to one account at Meta. Meta reviews, approves, and sends it under that account. The copy therefore names its account rather than taking the source's. A Bird built-in template lives on Bird's own account, which you cannot submit against. It must be an account connected to this workspace. (required; or in --body-file)
--slugThe copy's handle. The server assigns one when omitted. A bird_ slug is rejected, and one already in use is a conflict.
--nameThe copy's display name. Inherited from the source when omitted.
--include-languages <value>…The languages the copy carries, when it should carry only some of them. Every entry must be a language the source holds. A copy narrows the set it inherits, it never adds to it. Omitted, the copy takes all of the source's languages.
--default-languageThe copy's default language, which must be one of the languages the copy carries. Omitted, the copy keeps the source's default when include_languages still carries it. Otherwise it takes the first of the copy's languages sorted by canonical tag, which is the order the copy stores them in, not the order include_languages listed them.
--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 getGet a message template
bird whatsapp templates listList available message templates
bird whatsapp templates updateUpdate a message template