{ "opencollection": "1.0.0", "info": { "name": "Contentstack Analytics Accounts Audiences API", "version": "v2" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Audiences", "type": "folder" }, "items": [ { "info": { "name": "Get all audiences", "type": "http" }, "http": { "method": "GET", "url": "https://api.contentstack.io/audiences", "headers": [ { "name": "x-project-uid", "value": "" } ] }, "docs": "Retrieves all audience segment definitions in the Personalize project. Audiences define the user groups that experiences are targeted to." }, { "info": { "name": "Create an audience", "type": "http" }, "http": { "method": "POST", "url": "https://api.contentstack.io/audiences", "headers": [ { "name": "x-project-uid", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new audience segment in the Personalize project based on attribute conditions and behavioral rules." }, { "info": { "name": "Update an audience", "type": "http" }, "http": { "method": "PUT", "url": "https://api.contentstack.io/audiences/:id", "headers": [ { "name": "x-project-uid", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the audience." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the rules and configuration of an existing audience segment." }, { "info": { "name": "Delete an audience", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.contentstack.io/audiences/:id", "headers": [ { "name": "x-project-uid", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the audience." } ] }, "docs": "Permanently deletes an audience from the Personalize project. Audiences referenced in active experiences cannot be deleted." } ] } ], "bundled": true }