Create Audience
Changed onCreates 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.
Request
- Base URLhttps://api.superwall.com
- URLhttps://api.superwall.com/v2/campaigns/{id}/audiences
- Auth
- HTTP bearer
- or API key in cookie accounts_superwall_token
- or HTTP bearer
Path parameters
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
- warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - info
added
subschema #1subschema #2to the response bodyanyOflist for the response status - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5to the response bodyanyOflist for the response status - info
added
subschema #2subschema #3subschema #4to the response bodyanyOflist for the response status - info
removed
subschema #1subschema #2from the response bodyanyOflist for the response status - info
removed
subschema #1subschema #2subschema #3subschema #4subschema #5from the response bodyanyOflist for the response status - info
removed
subschema #2subschema #3subschema #4from the response bodyanyOflist for the response status
- warning
- breaking
request property
///list-of-types was narrowed by removing typesnumberfrom media typeapplication/json - breaking
the
////request property type changed fromnumbertointeger
- breaking