Documentation
Sign inGet started

bird audiences create

Usage

Exemple de code
bird audiences create <name> [flags]

Description

Create an audience
New audiences start empty. Add contacts with "bird audiences add-contacts" or the bulk "bird contacts batch", which matches or creates each contact and assigns it in one call. static is the only type, and it is the default.
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

Exemple de code
# print the body shape (no credentials needed)
bird audiences create --example

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

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

Options

Audience

NameDescription
--descriptionLonger description of who this audience is
--typeAudience type. static is the only value, and the default (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