Skip to main content

๐Ÿ”„ Update an Audience

Updates an existing audience.

๐Ÿ“ค Request Example

curl -X PATCH https://betaapi.audiohook.com/v2/companies/:companyUUID/audiences/test-audience-uuid/ \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "advertiser_id": "1234-abcd-qwer-xcvb",
      "name": "Test audience new name",
      "topics": ["topic 3", "topic 4"],
      "type": 3
    }
}'

โœ… Response Example

{"Message": "Updated audience test-audience-uuid"}

๐ŸŒ HTTP Request

PATCH /v2/companies/:companyUUID/audiences/:audienceUUID

๐Ÿงพ Body Parameters

ParameterRequiredTypeDescription
nameโœ…stringAudience name
advertiser_idโŒstringUUID of advertiser
typeโŒintAudience type
tagsโŒarrayArray of tags
first_partyโŒarrayFirst party segments
liveramp_idsโŒarrayLiveramp IDs if type=2
topicsโŒarray/stringList of topics or โ€˜csvโ€™