Update an audience
curl --request PATCH \
--url https://www.fandom.ai/api/v1/audiences/{audienceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Parents and grandparents buying building sets",
"tags": [
"toys"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: 'Parents and grandparents buying building sets', tags: ['toys']})
};
fetch('https://www.fandom.ai/api/v1/audiences/{audienceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.fandom.ai/api/v1/audiences/{audienceId}"
payload = {
"description": "Parents and grandparents buying building sets",
"tags": ["toys"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "<string>",
"keywords": [
"<string>"
],
"topics": [
"<string>"
],
"tags": [
"<string>"
],
"dataStoreIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Audiences
Update an audience
Send only the fields to change. Lists replace the stored list. Campaigns keep the copy they attached.
Scope: audiences:write.
Send an Idempotency-Key header to make retries safe.
PATCH
/
audiences
/
{audienceId}
Update an audience
curl --request PATCH \
--url https://www.fandom.ai/api/v1/audiences/{audienceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Parents and grandparents buying building sets",
"tags": [
"toys"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: 'Parents and grandparents buying building sets', tags: ['toys']})
};
fetch('https://www.fandom.ai/api/v1/audiences/{audienceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.fandom.ai/api/v1/audiences/{audienceId}"
payload = {
"description": "Parents and grandparents buying building sets",
"tags": ["toys"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "<string>",
"keywords": [
"<string>"
],
"topics": [
"<string>"
],
"tags": [
"<string>"
],
"dataStoreIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Authorizations
Headers
Body
application/json

