Documentation
Sign inGet started

bird audiences create

Usage

Ejemplo de código
bird audiences create <name> [flags]

Description

Create an audience.
New audiences start empty. Add contacts with "bird email audiences add-contacts" or the bulk "bird email contacts batch". --type defaults to static; dynamic and external are preview values and are currently rejected.
Build the request from the <name> argument and flags, a JSON AudienceCreateRequest body via --body-file ("-" reads stdin), or both — an inline value 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

Ejemplo de código
# print the body shape (no credentials needed)
bird audiences create --example

# the body it prints:
Ejemplo de código
{
  "description": "Contacts who opted into the monthly product newsletter",
  "name": "Newsletter subscribers"
}
Ejemplo de código
# create a static audience
bird email audiences create "VIP customers"

# preview the request without creating
bird email audiences create "VIP customers" --dry-run

Options

Audience

NameDescription
--descriptionLonger description of who this audience is
--typeAudience type: static (dynamic and external are preview and unavailable) (default static)

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 audiences add-contactsAdd contacts to a static audience.
bird audiences deleteDelete an audience
bird audiences getGet an audience
bird audiences listList audiences
bird audiences list-contactsList an audience's contacts
bird audiences remove-contactRemove a contact from an audience
bird audiences remove-contactsRemove contacts from a static audience.
bird audiences updateUpdate an audience's name or description.