update_gift
Update gift details such as name, quantity, and image. Only include fields to modify.
Instructions
[WRITE] 更新贈品資料。
【用途】 修改指定贈品的名稱、數量、圖片等欄位。僅傳入要修改的欄位。
【呼叫的 Shopline API】
PATCH /v1/gifts/{gift_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
修改指定贈品的資料,變更立即生效
不可復原,但可再次呼叫此工具覆蓋
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gift_id | Yes | 贈品 ID | |
| gift_data | Yes | 要更新的贈品欄位,例如 {name, quantity, ...} |