Update Menu Product Taste
Description
更新菜單商品加值。
Resource
PATCH /manager/v1/product/menu_product_taste
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| company_id | string | 公司編號 |
| insert_data | Taste Detail | 要新增的資料 |
| delete_data | Taste Detail | 要刪除的資料 |
Request Body Parameters - Taste Detail
| Name | Type | Description |
|---|---|---|
| product_id | string | 商品編號 |
| taste_id | string | 加值編號 |
Request Example
{
"company_id": "18090377",
"insert_data": [
{
"product_id": "UC0000001",
"taste_id": "1"
},
{
"product_id": "UC0000002",
"taste_id": "1"
}
],
"delete_data": [
{
"product_id": "UC0000002",
"taste_id": "5"
}
]
}
Response Example
Status-Code: 204 NO CONTENT