bird email templates versions languages set
Usage
Contoh kode
bird email templates versions languages set <template-id> <version-id> <language> [flags]Description
Save one language of a draft
Save one language's full content on a template's draft, creating the language if the draft does not carry it yet.
Build the request from flags, a JSON EmailTemplateLanguageUpsert 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.
Procedure
Step 2 of 3 of "Author a template and make it sendable". Previous: bird email templates create. Next: bird email templates versions submit.
Examples
Contoh kode
# print the body shape (no credentials needed)
bird email templates versions languages set --example
# the body it prints:Contoh kode
{
"html": "<h1>Hi {{ bird.contact.first_name }}</h1>",
"subject": "Welcome to Acme, {{ bird.contact.first_name }}!"
}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 |
|---|---|
| --subject | The email subject line for this language. |
| --html | The HTML body for this language. |
| --text | The plain-text body for this language. Omit 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 save is rejected with a conflict if the language moved on since. Omit it to save unconditionally. Creating a language does not need one. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird email templates versions languages delete | Remove one language from a draft |
| bird email templates versions languages get | Get one language of a version |
| bird email templates versions languages list | List a version's languages |
| bird email templates versions languages update | Edit one language of a draft |