Documentation
Sign inGet started

bird email templates versions languages update

Usage

Exemple de code
bird email templates versions languages update <template-id> <version-id> <language> [flags]

Description

Edit one language of a draft
Change some fields of one language on a template's draft, leaving the rest as they are.
Build the request from flags, a JSON EmailTemplateLanguageUpdate 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

Exemple de code
# print the body shape (no credentials needed)
bird email templates versions languages update --example

# the body it prints:
Exemple de code
{
  "html": "<h1>Hi {{ bird.contact.first_name }}</h1>",
  "subject": "Welcome to Acme, {{ bird.contact.first_name }}!"
}

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
--subjectA new email subject line for this language.
--htmlA new HTML body for this language.
--textA new plain-text body for this language. Send null to clear it, and a plain-text alternative is derived from the HTML when you publish.
--revision <n>The revision you last read for this language, to detect a concurrent edit. The edit is rejected with a conflict if the language moved on since. Omit it to apply the edit unconditionally.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email templates versions languages deleteRemove one language from a draft
bird email templates versions languages getGet one language of a version
bird email templates versions languages listList a version's languages
bird email templates versions languages setSave one language of a draft