Campaigns V2
Update Audience
Updates an audience's enabled status, description, targeting rule, variant optimization, or variants. Provide a structured rule_conditions rule to update targeting: it is compiled into the audience's expression and drives expression_cel for modern SDKs, and the audience is switched to the rule editor so it stays in sync with the dashboard. The legacy raw expression field is no longer accepted. When variants are provided they replace the existing set. Requires campaigns:write scope.
patch/v2/campaigns/{id}/audiences/{audience_id}
Path parameters
idstring required
Campaign ID
Campaign ID
audience_idstring required
Audience ID
Audience ID
Request body
Example request
{
"rule_conditions": {
"operator": "and",
"conditions": [
{
"type": "condition",
"lhs": {
"type": "property",
"value": "device.appVersion"
},
"operator": "gte",
"rhs": {
"type": "string",
"value": "1.2.3"
}
}
]
}
}Response
Success
Changes
No recorded changes to this endpoint across all 1 revision of this API.