update_product
Update product fields such as name, description, category, or status by specifying only changed values. Changes take effect immediately.
Instructions
[WRITE] 更新商品基本資料。
【用途】 修改現有商品的名稱、描述、分類、狀態等欄位。僅傳入要修改的欄位, 未傳入的欄位不會被覆蓋。
【呼叫的 Shopline API】
PUT /v1/products/{product_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
商品資料變更立即生效,前台同步更新
不可復原(無版本歷史),但可再次呼叫此工具覆蓋
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | 商品內部 ID | |
| product_data | Yes | 要更新的商品欄位(僅需傳入要修改的欄位) |