Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Audiences
Update an audience
Creates or updates audience.
PUT
/
audiences
/
{audience_id}
Copy
Ask AI
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>"
}
}'
Copy
Ask AI
{
"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
Response
200 - application/json
The response is of type object
.
Copy
Ask AI
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>"
}
}'
Copy
Ask AI
{
"audience": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"filter": {
"operator": "ENDS_WITH",
"value": "<string>",
"path": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.