listRecommendationGlobalRules

get

/ccadmin/v1/recommendationGlobalRules

This operation is used to get the collection of Recommendation Global Rules from Oracle Commerce Cloud.

Request

Supported Media Types
Query Parameters
  • This controls which fields are returned in the response body. The default is to include all Global Rule 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 to be fetched.
  • This field specifies the query used to filter Global Rules.
  • This field specifies the sort order of the list to be fetched.
  • Indicates if the total results should be included in the response.
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listRecommendationGlobalRules_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 : conditions
Type: array
The array of Conditions and their parameters, if any. Conditions are described in the /recommendationGlobalRuleConditions endpoint.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "totalResults":3,
    "offset":0,
    "sort":{
        "property":"displayName",
        "order":"asc"
    },
    "items":[
        {
            "displayName":"noProductsInCurrentBrand",
            "description":"This is a description of noProductsInCurrentBrand",
            "id":"noProductsInCurrentBrand",
            "conditions":[
                {
                    "id":"currentBrand"
                }
            ]
        },
        {
            "displayName":"noProductsInCurrentCollection",
            "description":"This is a description of noProductsInCurrentCollection",
            "id":"noProductsInCurrentCollection",
            "conditions":[
                {
                    "id":"currentCollection"
                }
            ]
        },
        {
            "displayName":"noProductsInCurrentPriceType",
            "description":"This is a description of noProductsInCurrentPriceType",
            "id":"noProductsInCurrentPriceType",
            "conditions":[
                {
                    "id":"currentPriceType"
                }
            ]
        }
    ]
}

Default Response

The error response.
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