Documentation
Sign inGet started

bird email templates versions rollback

Usage

代码示例
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

代码示例
# print the body shape (no credentials needed)
bird email templates versions rollback --example

# the body it prints:
代码示例
{
  "revision": 3
}

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

Safety

NameDescription
--yesConfirm a destructive action (required; the CLI never prompts)

Options

NameDescription
--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-schemaPrint the fields this command returns, then exit
NameDescription
bird email templates versions deleteDiscard the draft's changes
bird email templates versions getGet an email template version
bird email templates versions listList email template versions
bird email templates versions submitSubmit an email template version