update_addon_product
Modify an addon product's name, price, image, or other fields by specifying the product ID and the fields to update. The changes take effect immediately and can be revised by calling again.
Instructions
[WRITE] 更新加購商品資料。
【用途】 修改指定加購商品的名稱、價格、圖片等欄位。僅傳入要修改的欄位。
【呼叫的 Shopline API】
PUT /v1/addon_products/{addon_product_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
修改指定加購商品的資料,變更立即生效
不可復原,但可再次呼叫此工具覆蓋
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addon_data | Yes | 要更新的加購商品欄位,例如 {name, price, ...} | |
| addon_product_id | Yes | 加購商品 ID |