bird email templates versions rollback
Usage
Przykład kodu
bird email templates versions rollback <template-id> <version-id> [flags]Description
Roll back an email template
Make an earlier published version live again and reset the draft to its content, so editing continues from it. The change is immediate, creates no new version, and leaves version history unchanged. The request must include the draft revision last read. The draft's current content is replaced. Only published versions can be rolled back to.
Build the request from flags, a JSON EmailTemplateRollback 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.
This is destructive and cannot be undone; pass --yes to confirm.
Examples
Przykład kodu
# print the body shape (no credentials needed)
bird email templates versions rollback --example
# the body it prints:Przykład kodu
{
"revision": 3
}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 |
Safety
| Name | Description |
|---|---|
| --yes | Confirm a destructive action (required; the CLI never prompts) |
Options
| Name | Description |
|---|---|
| --revision <n> | The draft revision you last read (from the template's revision field). A stale value returns a conflict so you can reload and retry. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird email templates versions delete | Discard the draft's changes |
| bird email templates versions get | Get an email template version |
| bird email templates versions list | List email template versions |
| bird email templates versions submit | Submit an email template version |