Validate a recommendation.
post
/content/management/api/v1.1/personalization/recommendations/{id}/validatePublish
The recommendation and all its default items will be validated for publishing to the selected channel(s).
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
Id of the Recommendation.
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
The information to validate a Recommendation and its default items for publishing to the provided channel(s). If no channels are provided, the targeted channels in the recommendation is used.
Root Schema : RecommendationValidate
Type:
object
Recommendation Validate Request
Show Source
-
channels(optional):
array channels
List of validation channels. If channels is not empty, the recommendation and defaults are validated to the given channels. If channels is empty, the recommendation and its defaults are validated to the targeted channels.
-
validation(optional):
object PublishValidation
PublishValidation
Nested Schema : channels
Type:
array
List of validation channels. If channels is not empty, the recommendation and defaults are validated to the given channels. If channels is empty, the recommendation and its defaults are validated to the targeted channels.
Show Source
-
Array of:
object ChannelId
ChannelId
Nested Schema : PublishValidation
Type:
object
PublishValidation
Show Source
-
languageOnly(optional):
boolean
-
testOnly(optional):
boolean
-
verbosity(optional):
string
Allowed Values:
[ "none", "terse", "normal", "verbose" ]
Nested Schema : ChannelId
Type:
object
ChannelId
Show Source
-
id(optional):
string
-
isPrimaryChannel(optional):
boolean
Indicates if channel is primary for an asset.
-
links(optional):
array links
Links
-
name(optional):
string
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Response
Supported Media Types
- application/json
200 Response
Accepted.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Recommendation not found. The requested resource not found.
500 Response
Internal server error.