List audiences

GET /{tenant}/target/audiences
List all available audiences with options to filter and sort by each available field.
RETURN TYPE
RESPONSES
200 OK
400 Bad Request. Most probably the data provided in the request is invalid.
401 You are not authorized to perform this request
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
parameters (required) Query Parameter — Undefined

Create an audience

POST /{tenant}/target/audiences
Create a new audience as specified by the contents of the request and return the newly-created audience definition.
REQUEST BODY
audience (required) Body Parameter — Audience
RESPONSES
201 Created
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
403 Access to this resource is forbidden.
404 The referenced resource was not found.

Get an audience by id

GET /{tenant}/target/audiences/{id}
Get the audience definition specified by the provided id.
RETURN TYPE
RESPONSES
200 OK
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
id (required) Path Parameter — integer

Update an audience

PUT /{tenant}/target/audiences/{id}
Update an audience with the new rules specified by the request data.
REQUEST BODY
audience (required) Body Parameter — Audience
RETURN TYPE
RESPONSES
200 OK
201 Created
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
id (required) Path Parameter — integer

Delete an audience

DELETE /{tenant}/target/audiences/{id}
Delete the audience referenced by the specified id.
RETURN TYPE
RESPONSES
200 OK
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
204 No Content
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
id (required) Path Parameter — integer