Update an audience
curl --request PATCH \
--url https://fandom-api-preview.vercel.app/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://fandom-api-preview.vercel.app/api/v1/audiences/{audienceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fandom-api-preview.vercel.app/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://fandom-api-preview.vercel.app/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://fandom-api-preview.vercel.app/api/v1/audiences/{audienceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fandom-api-preview.vercel.app/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
An API key from Settings → API access, starting with fnd_.
Headers
Any unique string. Repeating a request with the same key returns the first result instead of doing it twice.
Maximum string length:
200Path Parameters
Audience id.
Pattern:
^[a-f0-9]{24}$Body
application/json
Required string length:
1 - 160Who these people are, in plain words. Drives targeting.
Maximum string length:
4000Maximum array length:
200Required string length:
1 - 200Maximum array length:
100Required string length:
1 - 200Maximum array length:
50Required string length:
1 - 100Data stores this audience is built from.
Maximum array length:
25Data store id.
Pattern:
^[a-f0-9]{24}$
