listAudienceRuleProperties

get

/ccadmin/v1/audienceRuleProperties

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

Request

Supported Media Types
Query Parameters
  • 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.
  • This field specifies the offset/starting index from which data to be fetched. The default is 0.
  • This field specifies the sort order of the list to be fetched. The format is <attribute>:<asc|desc>.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listAudienceRuleProperties_response
Type: object
Show Source
Nested Schema : items
Type: array
The returned list of items.
Show Source
Nested Schema : items
Type: object
Show Source
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.
Show Source
Nested Schema : enums
Type: array
The available choices for enum type properties. This will be null for other types.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (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
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