Audiences
Audit Events
AuthTokens
Inbound
Lists
Messages
Notifications
Profiles
Tenants
Translations
User Preferences
User Tenants
Audiences
Put
PUT
/
audiences
/
{audience_id}
curl --request PUT \
--url https://api.courier.com/audiences/{audience_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
}
}'
{
"audience": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
A unique identifier representing the audience id
Body
application/json
The name of the audience
A description of the audience
A single filter to use for filtering
The operator to use for filtering
Available options:
ENDS_WITH
, EQ
, EXISTS
, GT
, GTE
, INCLUDES
, IS_AFTER
, IS_BEFORE
, LT
, LTE
, NEQ
, OMIT
, STARTS_WITH
The value to use for filtering
The attribe name from profile whose value will be operated against the filter value
Response
200 - application/json
A unique identifier representing the audience_id
The name of the audience
A description of the audience
A single filter to use for filtering
The operator to use for filtering
Available options:
ENDS_WITH
, EQ
, EXISTS
, GT
, GTE
, INCLUDES
, IS_AFTER
, IS_BEFORE
, LT
, LTE
, NEQ
, OMIT
, STARTS_WITH
The value to use for filtering
The attribe name from profile whose value will be operated against the filter value
curl --request PUT \
--url https://api.courier.com/audiences/{audience_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
}
}'
{
"audience": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
}