Documentation
Sign inGet started

bird email broadcasts update

Usage

代码示例
bird email broadcasts update <broadcast-id> [flags]

Description

Update a draft or scheduled broadcast
Only the fields you pass change. A broadcast whose delivery has already started can no longer be edited. To clear a nullable field (template, reply-to, ip-pool-id), pass an explicit null via --body-file, e.g. --body-file '{"ip_pool_id": null}'.
Build the request from flags, a JSON EmailBroadcastUpdateRequest 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

代码示例
# print the body shape (no credentials needed)
bird email broadcasts update --example

# the body it prints:
代码示例
{
  "category": "marketing",
  "template": {
    "id": "emt_01krdgeqcxet5s7t44vh8rt9mg"
  }
}

Options

Content

NameDescription
--fromSender address. Accepts a bare address or RFC 5322 "Name <addr>" form
--audience-idAudience to send to
--templateTemplate id (emt_…) whose latest published version supplies the content
--reply-to <v1,v2,…>Reply-To address; repeatable. Accepts bare addresses or RFC 5322 "Name <addr>" form

Labels & metadata

NameDescription
--header <key=value>Custom header as Key=Value; repeatable. Replaces the draft's existing headers
--tag <key=value>Tag as name=value; repeatable. Replaces the draft's existing tags
--metadataArbitrary JSON metadata object. Replaces the draft's existing metadata
--categorySuppression policy: marketing or transactional
--ip-pool-idIP pool id (ipp_…) to send from

Tracking

NameDescription
--track-opensTrack open events (default true)
--track-clicksTrack click events (default true)

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
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email broadcasts cancelCancel a broadcast
bird email broadcasts countsGet a broadcast's audience counts
bird email broadcasts createCreate a broadcast
bird email broadcasts deleteDelete a broadcast
bird email broadcasts getGet a broadcast
bird email broadcasts listList broadcasts
bird email broadcasts list-eventsList events for a broadcast
bird email broadcasts list-recipientsList recipients of a broadcast
bird email broadcasts sendSend a broadcast