List all recommendations

get

/content/management/api/v1.1/personalization/recommendations

This resource returns a list of available recommendations that can be filtered by the recommendation's name, apiName and updatedAt. You can control the number of items to be fetched, paginated, and sorted. Refer to the query syntax description to see the limitations.

Request

Query Parameters
  • Default search query expression.
  • This parameter is used to control the returned fields for a recommendation. This parameter accepts a comma-separated list of field names or all. These fields will be returned for each recommendation in the list. As all the field names are case-sensitive, users must provide the correct field names in the query. Each recommendation has both standard fields (id, name, apiName, description, type, createdBy, createdAt, updatedBy, updatedAt, main and defaults. When fields is specified as all (case-insensitive), all the standard and additional fields are returned. The standard fields are always returned in the response and cannot be filtered out. Users can only filter out the additional fields. This parameter is optional in the query and by default result shows only standard fields in the response. Any incorrect or invalid field name given in the query will result in an error.

    Example: ?fields=all
    This will return all standard fields and all additional fields for each recommendation.
  • This parameter accepts a non negative integer and is used to control the size of the result.
    Default Value: 100
  • This parameter accepts a non negative integer and is used to control the start index of the result.
    Default Value: 0
  • Order by results. Recommendations can currently only be ordered by name.
    Default Value: name:asc
  • This parameter accepts a query expression condition that matches the field values. Query conditions can be joined using AND operators and grouped with parentheses. The value of a query condition follows the format of {fieldName} {operator} "{fieldValue}". The only field name allowed is repositoryId. The only value allowed in the operator is eq (Equals).
    Example:
    https://{cecsdomain}/content/management/api/v1.1/personalization/recommendations?q=(apiName eq "TestRecommendation")
    Example:
    https://{cecsdomain}/content/management/api/v1.1/personalization/recommendations?q=(repositoryId eq "EAQWER42DGKJ10PCNMGAE")
  • This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.
    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Recommendations
Type: object
Recommendations
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : Recommendation
Type: object
Recommendation
Show Source
Nested Schema : channels
Type: array
Show Source
Nested Schema : contentTypes
Type: array
Content types the Recommenation will return. It is a required property in the get response and post/put request.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : defaults
Type: array
The default rule section.
Show Source
Nested Schema : main
Type: array
The main rule section.
Show Source
Nested Schema : publishedChannels
Type: array
Show Source
Nested Schema : ItemSubResourceListPublishInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ChannelId
Type: object
ChannelId
Show Source
Nested Schema : ContentTypeId
Type: object
Show Source
Nested Schema : DefaultSection
Type: object
Default Section
Show Source
  • items
    List of items. This is optional and can be empty.
  • sort
    This is a very simple sort based of the normal quiery syntax.

    Example: [systemField | userDefinedfield]<:>
    Where:

    standardAssetField - this is a predefined list of fields the user can choose to sort on. This can be given an ascneding and descending property by adding :asc or :desc

    Examples:

    publishedDate:asc - sort by published date ascneding
    userAssetField - This refers to fields defined in the content type as created by the user.
    field.myText or field.someThing:desc
    If no systemField or userDefinedField is provided, :random and :relevance can be provided.

    :relevance - Default. This will return assets ordered by their relevance.

    :random - This will return assets in a random order irrespective of any rules or fields.
Nested Schema : items
Type: array
List of items. This is optional and can be empty.
Show Source
Nested Schema : sort
Type: array
This is a very simple sort based of the normal quiery syntax.

Example: [systemField | userDefinedfield]<:>
Where:

standardAssetField - this is a predefined list of fields the user can choose to sort on. This can be given an ascneding and descending property by adding :asc or :desc

Examples:

publishedDate:asc - sort by published date ascneding
userAssetField - This refers to fields defined in the content type as created by the user.
field.myText or field.someThing:desc
If no systemField or userDefinedField is provided, :random and :relevance can be provided.

:relevance - Default. This will return assets ordered by their relevance.

:random - This will return assets in a random order irrespective of any rules or fields.
Show Source
Nested Schema : ItemId
Type: object
Show Source
Nested Schema : MainRulesSection
Type: object
Main Rules Section
Show Source
  • RulesProperties
    RulesProperties
  • rules
    Main list of Rules. This is optional and can be empty.
  • sort
    This is a very simple sort based of the normal quiery syntax.

    Example: [systemField | userDefinedfield]<:>
    Where:

    standardAssetField - this is a predefined list of fields the user can choose to sort on. This can be given an ascneding and descending property by adding :asc or :desc

    Examples:

    publishedDate:asc - sort by published date ascneding
    userAssetField - This refers to fields defined in the content type as created by the user.
    field.myText or field.someThing:desc
    If no systemField or userDefinedField is provided, :random and :relevance can be provided.

    :relevance - Default. This will return assets ordered by their relevance.

    :random - This will return assets in a random order irrespective of any rules or fields.
Nested Schema : RulesProperties
Type: object
RulesProperties
Show Source
  • Allowed Values: [ "ALL", "ANY" ]
    The operator that will be used to combine the rules in this group. This is optional and defaults to ALL if omitted.
Nested Schema : rules
Type: array
Main list of Rules. This is optional and can be empty.
Show Source
Nested Schema : sort
Type: array
This is a very simple sort based of the normal quiery syntax.

Example: [systemField | userDefinedfield]<:>
Where:

standardAssetField - this is a predefined list of fields the user can choose to sort on. This can be given an ascneding and descending property by adding :asc or :desc

Examples:

publishedDate:asc - sort by published date ascneding
userAssetField - This refers to fields defined in the content type as created by the user.
field.myText or field.someThing:desc
If no systemField or userDefinedField is provided, :random and :relevance can be provided.

:relevance - Default. This will return assets ordered by their relevance.

:random - This will return assets in a random order irrespective of any rules or fields.
Show Source
Nested Schema : Rule
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : PublishInfo
Type: object
PublishInfo
Show Source

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top