cURL
curl --request PUT \ --url https://api.globalwebindex.com/v2/saved/audiences/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Male with credit card and short-term loan", "expression": { "and": [ { "question": "q2", "datapoints": [ "q2_1" ] }, { "question": "gwi-ext.q1014a", "datapoints": [ "q1014a", "q1014b" ], "suffixes": [ "1" ] } ] }, "folder_id": "b140035b-3adc-43bf-a39d-8e8005c8af2a", "position": 128, "datasets": [ "ds-core", "ds-96c906f1" ] }'
Update an existing audience owned by the current user to match with sent JSON audience (replace).
Audience ID
audience to store
The body is of type object.
object
OK
Was this page helpful?