audienceUsage

get

/ccadmin/v1/audienceUsage/{id}

Audience Usage. Retrieve the list of Audience consumers. The items in the response will have the following fields: id, displayName, assetType, assetTypeDisplayName, description. Items may also have an optional additionalMetaData property.

Request

Supported Media Types
Query Parameters
  • This controls which fields are returned in the response body. The default is to include the top-level response fields and the Audience id, displayName, description, and enabled fields.
  • This is the field to specify the number of records to be fetched per REST call.
  • This field specifies the offset/starting index from which data is to be fetched.
  • This field allows you to filter the results using SCIM filtering syntax. For example, q=displayName co "aud" or description co "aud"
  • This field specifies the sort order of the list to be fetched. You can sort on id, displayName, assetType, assetTypeDisplayName or description. The secondary sort field will always be assetTypeDisplayName except when sorting by that property. In that case, the secondary sort will be by displayName. The default value is displayName:asc
  • Indicates if the total results should be included in the response. Defaults to true
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : audienceUsage_response
Type: object
Show Source
Nested Schema : items
Type: array
The returned list of audience consumers.
Show Source
Nested Schema : sort
Type: object
The sort used for the returned audience consumers.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "totalResults":2,
    "offset":0,
    "limit":40,
    "items":[
        {
            "assetTypeDisplayName":"Audience",
            "displayName":"Audience 2",
            "description":"audience2 audience2 audience2",
            "id":"audience2",
            "assetType":"audience"
        },
        {
            "assetTypeDisplayName":"Slot",
            "displayName":"Slot 1",
            "description":"slot1 slot1 slot1",
            "id":"slot1",
            "additionalMetadata":{
                "layoutID":"layout1"
            },
            "assetType":"slot"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |54061|The q parameter contains an invalid operation.| |54000|Invalid user input.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top