listAudienceRuleProperties

get

/ccadmin/v1/audienceRuleProperties

List Audience Rule Properties. Retrieve the properties available for building Audience rules.

Request

Supported Media Types
  • application/json
Query Parameters
limit
Type: integer
This is the field to specify the number of records to be fetched per REST call. The default value is 40. If limit > 250, the server will convert it to 250 without returning an error.
offset
Type: integer
This field specifies the offset/starting index from which data to be fetched. The default is 0.
sort
Type: string
This field specifies the sort order of the list to be fetched. The format is <attribute>:<asc|desc>.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listAudienceRuleProperties_response
Nested Schema : items
Type: array
The returned list of items.
Nested Schema : items
Type: object
Nested Schema : enumList
Type: object
The only Audience rule property of type EnumList in v1 will be the internal Audiences list, which will always appear as a link. This will be null for other types.
Nested Schema : enums
Type: array
The available choices for enum type properties. This will be null for other types.
Nested Schema : items
Type: object
Example application/json

{
    "totalResults":3,
    "offset":0,
    "limit":40,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/audienceRuleProperties"
        }
    ],
    "items":[
        {
            "enums":[
                {
                    "displayName":"Female",
                    "id":"female"
                },
                {
                    "displayName":"Male",
                    "id":"male"
                }
            ],
            "displayName":"Gender",
            "name":"gender",
            "type":"Enum"
        },
        {
            "enums":null,
            "displayName":"homeAddress.state",
            "name":"homeAddress.state",
            "type":"String"
        },
        {
            "enumList":{
                "links":[
                    {
                        "rel":"self",
                        "href":"ccadmin/v1/audiences?fields=id,displayName"
                    }
                ]
            },
            "displayName":"Audiences this user must be a member of",
            "name":"audienceList",
            "source":"internalAudiences",
            "type":"EnumList"
        }
    ]
}
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| |------------------|------------------| |54001|There was an error retrieving property descriptors from the profile repository.|
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:

{
  "totalResults": 3,
  "offset": 0,
  "limit": 40,
  "links": [{
    "rel": "self",
    "href": "http://localhost:9080/ccadminui/v1/audienceRuleProperties"
  }],
  "items": [
    {
      "enums": [
        {
          "displayName": "Female",
          "id": "female"
        },
        {
          "displayName": "Male",
          "id": "male"
        }
      ],
      "displayName": "Gender",
      "name": "gender",
      "type": "Enum"
    },
    {
      "enums": null,
      "displayName": "homeAddress.state",
      "name": "homeAddress.state",
      "type": "String"
    },
    {
      "enumList": {"links": [{
        "rel": "self",
        "href": "ccadmin/v1/audiences?fields=id,displayName"
      }]},
      "displayName": "Audiences this user must be a member of",
      "name": "audienceList",
      "source": "internalAudiences",
      "type": "EnumList"
    }
  ]
}