getAudience

get

/ccadmin/v1/audiences/{id}

Get Audience. This operation is used to get an audience from Oracle Commerce Cloud.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The audience id.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getAudience_response
Nested Schema : ruleSet
Type: object
The audience rule set.
Nested Schema : rules
Type: array
An array of rules that make up the rule set.
Nested Schema : items
Type: object
Example application/json

{
    "useInReports":"false",
    "deleted":"false",
    "displayName":"Audience 1",
    "ruleSet":{
        "rules":[
            {
                "property":"user.gender",
                "category":"profile",
                "value":"male",
                "operator":"eq"
            }
        ],
        "operator":"all"
    },
    "description":"blah blah blah",
    "id":"audience1",
    "enabled":"true"
}
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| |------------------|------------------| |54021|A non-empty audience ID is required.|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "useInReports": "false",
  "deleted": "false",
  "displayName": "Audience 1",
  "ruleSet": {
    "rules": [{
      "property": "user.gender",
      "category": "profile",
      "value": "male",
      "operator": "eq"
    }],
    "operator": "all"
  },
  "description": "blah blah blah",
  "id": "audience1",
  "enabled": "true"
}