PUT
/
public
/
v1
/
audiences
/
{audience-key}
curl --request PUT \
  --url https://api.topsort.com/public/v1/audiences/{audience-key} \
  --header 'Content-Type: application/json' \
  --data '{
  "audienceValues": [
    "<string>"
  ]
}'
{
  "audienceKey": "age",
  "audienceValues": [
    "18-24",
    "25-34"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

audience-key
string
required

Audience key to update.

Body

application/json

Audiences to update.

audienceValues
string[]
required

New audience values.

Response

200
application/json
Successful Response

Represents an audience.

audienceKey
string
required

Unique identifier for categorizing audiences.

Required string length: 2 - 25
audienceValues
string[]
required

List of specific values under this category.

createdAt
string
required

Datetime of when the audience was created.

updatedAt
string
required

Datetime of the audience's last update.