Resource
services/data/vXX.X/connect/visit/recommendations/recommendation-decisions
Available Version
51.0
Requires Chatter
No
HTTP Methods
POST
Request Body for POST
JSON Example
{ "recommendationDecision": "Accept",
"recommendationIds": ["9Tuxx0000004Eu0CAE"],
}
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| recommendationDecision | String | The unique identifier of a recommendation decision that is taken for recommendations. | Required | 51.0 |
| recommendationDecisionParams | Map<String, String> | The unique identifier of the other parameters that are relevant to process the decision taken. | Optional | 51.0 |
| recommendationIds | String[] | The unique identifier of the recommendations for which the recommendation decision is taken. | Required | 51.0 |
Response Body for POST
Sample Response Body
{
"recommendationDecisionDetails" : [ {
"message" : "Visit cannot be created in the past date",
"isSuccess" : false,
"recommendationId" : "9Tuxx0000004Eu0CAE"
},
{
"message" : "",
"isSuccess" : true,
"recommendationId" : "9Tuxx0000004Eu0CAE"
}
],
"status" : {
"code" : "200",
"message" : "70 out of 80 visits are scheduled."
“totalRecommendations” : 80
“successCount: : 70
}
}