おすすめの決定の保存
このオブジェクトは、API バージョン 51.0 以降で、Consumer Goods Cloud ライセンスを所有するユーザが使用できます。
サポートされている REST HTTP メソッド
- URI
- /services/data/vXX.X/actions/standard/saveRecommendationDecision
- 形式
- JSON、XML
- HTTP メソッド
- GET、HEAD、POST
- 認証
- Authorization: Bearer token
入力
| 入力 | 詳細 |
|---|---|
| actionParams |
|
| actionType |
|
| recommendationId |
|
出力
| 入力 | 詳細 |
|---|---|
| actionMessage |
|
| actionStatus |
|
例
要求サンプル
JSON リクエストボディ
1{
2 "inputs": [{
3 "recommendationId":"9TuB0000000TN6iKAG",
4 "actionType":"Accept",
5 "actionParams":{
6 "TaskGenerationType":"AIVisitTaskTemplate" //For Consumer Goods Cloud
7 }
8 }]
9}応答サンプル
JSON レスポンスボディ
1{
2 "actionName": "saveRecommendationDecision",
3 "errors": null,
4 "isSuccess": true,
5 "outputValues": {
6 "actionStatus": "success",
7 "actionMessage": "The visit was scheduled.",
8 }
9}エラーサンプル
JSON エラーボディ
1[{
2 "actionName": "saveRecommendationDecision",
3 "errors": null,
4 "isSuccess": true,
5 "outputValues": {
6 "actionStatus": "error",
7 "actionMessage": "We can’t schedule the recommendation because the recommendation status isn’t Recommended.",
8 }
9}]