v1
latestOpenAPI 3.1.02026-07-2419603.1 MBData Activation
Create audience
Create a new Audience. Requires edit permission.
post/api/cdp/settings/v1/app/{app_id}/audience
Path parameters
app_idstring uuid required
ID of the app.
Example:3929d56c-cd62-4001-a4fc-013f5f954691
Request body
Example request
{
"definition": {
"conditions": [
{
"conditions": [
{
"column_id": "location_country_iso_code",
"column_meta": {
"column_name": "Browser Type",
"column_type": "string",
"column_unit": "currency",
"column_category": [
"Device"
],
"analytics_column_id": "goal_revenue",
"analytics_transformation_id": "sum",
"value_selectors": [
"first"
],
"extractions": [
"first"
],
"aggregation": "first",
"scope": "event"
},
"condition": {
"operator": "eq",
"label": "Poland"
}
}
]
}
]
}
}Response
Created
Example response
{
"definition": {
"conditions": [
{
"conditions": [
{
"column_id": "location_country_iso_code",
"column_meta": {
"column_name": "Browser Type",
"column_type": "string",
"column_unit": "currency",
"column_category": [
"Device"
],
"analytics_column_id": "goal_revenue",
"analytics_transformation_id": "sum",
"value_selectors": [
"first"
],
"extractions": [
"first"
],
"aggregation": "first",
"scope": "event"
},
"condition": {
"operator": "eq",
"label": "Poland"
}
}
]
}
]
},
"author": {
"email": "author@piwik.pro"
}
}