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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

audience_id
string
required

A unique identifier representing the audience id

Body

application/json
name
string | null

The name of the audience

description
string | null

A description of the audience

filter
object

A single filter to use for filtering

Response

200 - application/json
audience
object
required