Approve or reject a recommendation.
post
/content/management/api/v1.1/personalization/recommendations/{id}/approve
By specifying true / false a recommendation can be approved or rejected.
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 approve or reject a Recommendation.
Root Schema : RecommendationApproval
Type:
object
Recommendation Approval request
Show Source
-
approve(optional):
object BooleanOperation
BooleanOperation
-
links(optional):
array links
Links of the Recommendation submit resource.
Nested Schema : BooleanOperation
Type:
object
BooleanOperation
Show Source
-
failedItems(optional):
array failedItems
items on which the action failed
-
items(optional):
array items
-
value(optional):
boolean
value
Nested Schema : links
Type:
array
Links of the Recommendation submit resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : FailedItemId
Type:
Show Source
object
-
id(optional):
string
id of the item.
-
links(optional):
array links
links of the item resource
-
message(optional):
string
failed item message.
-
name(optional):
string
name of the item.
Nested Schema : links
Type:
array
links of the item resource
Show Source
-
Array of:
object Link
Link of the resource.
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.
Nested Schema : ItemId
Type:
Show Source
object
-
id(optional):
string
id of the item.
-
links(optional):
array links
links of the item resource
-
name(optional):
string
name of the item.
Nested Schema : links
Type:
array
links of the item resource
Show Source
-
Array of:
object Link
Link of the resource.
Response
Supported Media Types
- application/json
200 Response
OK.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Recommendation not found. The requested resource not found.
500 Response
Internal server error.