Campaigns V2
Create Audience
Creates a new audience in a campaign, appended after the existing audiences. If no variants are supplied, a single HOLDOUT variant at 0% is created (matching the legacy createTriggerExperiment behaviour). Provide a structured rule_conditions rule to set targeting; omit it to match all users. Requires campaigns:write scope.
post/v2/campaigns/{id}/audiences
Path parameters
idstring required
Campaign ID
Campaign 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.