You can update the details of a single audience by making a PUT request to https://api.intercom.io/audiences/{id}.
You can also send this request with PATCH; it behaves the same as PUT.
Requires the read_write_audiences OAuth scope.
Intercom API version.
If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
The request payload for updating an audience. All fields are optional — only provided fields will be updated.
The predicates that define which contacts belong to the audience.
[ { "attribute": "custom_attributes.plan", "type": "string", "comparison": "eq", "value": "enterprise" } ]
Role-based predicates that further filter audience membership by contact role.
[ { "attribute": "role", "type": "role", "comparison": "in", "value": [ … ] } ]
- The production API serverhttps://api.intercom.io/audiences/{id}
- The european API serverhttps://api.eu.intercom.io/audiences/{id}
- The australian API serverhttps://api.au.intercom.io/audiences/{id}
curl -i -X PUT \
https://api.intercom.io/audiences/123 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: Preview' \
-d '{
"name": "Enterprise Accounts",
"predicates": [
{
"attribute": "custom_attributes.plan",
"type": "string",
"comparison": "eq",
"value": "enterprise"
}
]
}'Audience updated
An audience represents a group of contacts that can be targeted by Fin.
The name of the audience. Returned HTML-escaped, for example & as &.
The predicates that define which contacts belong to the audience.
[ { "attribute": "company.name", "type": "string", "comparison": "contains", "value": "Acme" } ]
Role-based predicates that further filter audience membership by contact role.
[ { "attribute": "role", "type": "role", "comparison": "in", "value": [ … ] } ]
{ "type": "audience", "id": "123", "name": "Enterprise Accounts", "predicates": [ { … } ], "role_predicates": [ { … } ], "created_at": 1717200000, "updated_at": 1717200100 }