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:
integerThis 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:integerThis field specifies the offset/starting index from which data to be fetched. The default is 0.- sort
Type:stringThis 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
- items
-
Type:
arrayitemsAdditional Properties Allowed:The returned list of items. - limit
-
Type:
integerMaximum number of results to be fetched. - offset
-
Type:
integerThe starting index of the returned results. - totalResults
-
Type:
integerThe total number of results that match the request parameters.
Nested Schema : items
Nested Schema : items
Type:
object- category
-
Type:
stringEither profile or internalAudience. The former indicates that this is a profile property. The latter indicates that this is the special enumList of all the Audiences. - categoryDisplayName
-
Type:
stringEither Profile or Audience. The former indicates that this is a profile property. The latter indicates that this is the special enumList of all the Audiences. - displayName
-
Type:
stringThe property display name. - enumList
-
Type:
objectenumListAdditional Properties Allowed: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. - enums
-
Type:
arrayenumsAdditional Properties Allowed:The available choices for enum type properties. This will be null for other types. - name
-
Type:
stringThe property name. - type
-
Type:
stringEither String, Enum, EnumList or Boolean.
Nested Schema : enumList
Type:
objectThe 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.
- links
-
Type:
arraylinksAdditional Properties Allowed:This points to the endpoint which returns the list of options for this enum list.
Nested Schema : enums
Nested Schema : links
Nested Schema : items
Type:
object- href
-
Type:
stringThe url of the endpoint to use to get the list of options for this enum list. - rel
-
Type:
stringThis will always be self.
Nested Schema : items
Type:
object- displayName
-
Type:
stringThe display name of the enum option. - id
-
Type:
integerThe id of the enum option.
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- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
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"
}
]
}