post https://{account}.piwik.pro/api/cdp/settings/v1/app//audience
Create a new Audience
Log in to see full request history
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
Loading…
Responses
Create a new Audience
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
xxxxxxxxxx
29curl --request POST \
--url https://example.piwik.pro/api/cdp/settings/v1/app/app_id/audience \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"definition": {
"conditions": [
{
"conditions": [
{
"column_meta": {
"column_type": "number",
"column_unit": "currency",
"analytics_transformation_id": "sum",
"aggregation": "first",
"scope": "event"
},
"value_selector": "first",
"condition": {
"operator": "eq"
}
}
]
}
]
}
}
'
xxxxxxxxxx
93}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2025-04-13T03:05:55.451Z",
"updated_at": "2025-04-13T03:05:55.451Z",
"name": "string",
"description": "string",
"membership_duration_days": 0,
"definition": {
"operator": "string",
"conditions": [
{
"operator": "or",
"conditions": [
{
"condition_type": "string",
"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",