Skip to main content
POST
Create audience

Authorizations

Authorization
string
header
required

Body

application/json

Body of a POST /v1/audiences request.

name
required

Display name for the audience. Provide a literal string (provided@buildtime:My audience) or any buildtime evaluatable that resolves to a string. Must be 255 characters or fewer once resolved.

component_ids
string[]
component_references
object[]
enabled

Whether the audience evaluates at runtime. Defaults to true when omitted. Provide a literal boolean or a buildtime evaluatable that resolves to a boolean.

tags
string[]

Free-form tags applied to the audience. Used to organise audiences in the dashboard and to filter them in API queries. Each tag must be 255 characters or fewer.

Response

Created audience.

Stored audience definition. Fields name and enabled are unevaluated and appear in buildtime-evaluatable form.

component_ids
string[]
required
component_references
object[]
required
enabled
required

Whether the audience is currently evaluated at runtime.

id
string
required
read-only

Stable Extole identifier for the audience.

name
required

Display name for the audience, in the same buildtime-evaluatable form that was supplied on create or update.

tags
string[]
required

Free-form tags applied to the audience.