Sign inGet Started

bird email blocks duplicate

Usage

Code example
bird email blocks duplicate <block-id> [flags]

Description

Duplicate a reusable email block

Copy every current draft language into a new unpublished block with no publication history, sending the source revision last read and a name. Each language keeps its authoring mode. A source change while copying returns 409.

Build the request from flags, a JSON EmailBlockDuplicate 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

Code example
# print the body shape (no credentials needed)
bird email blocks duplicate --example

# the body it prints:
Code example
{
  "name": "Legal disclosure copy",
  "revision": 1
}

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
--revision <n>Source metadata revision last read. A change while copying returns 409. (required; or in --body-file)
--nameName for the new block. (required; or in --body-file)
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email blocks createCreate a reusable email block
bird email blocks getGet a reusable email block
bird email blocks listList reusable email blocks
bird email blocks publishPublish a reusable email block
bird email blocks updateUpdate a reusable email block
bird email blocks validateValidate a reusable email section

Continue with the documentation, guides and examples for this topic.