Create a new Recommendation.

post

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

Create a new Recommendation with given payload.

Request

Supported Media Types
Query Parameters
Header Parameters
Body ()
Create a Recommendation with the given information in the payload. The fields id, status, isPublished, createdBy, createdAt, updatedBy, updatedAt and links will be ignored even if given in the payload.
Root Schema : RecommendationInput
Type: object
Recommendation Input Bean
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 : defaults
Type: array
The default rule section.
Show Source
Nested Schema : main
Type: array
The main rule section.
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
Back to Top

Response

Supported Media Types

201 Response

Created.
Body ()
Root 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