update_category
Update product category attributes such as name, sort order, or parent category by submitting only the fields to change.
Instructions
[WRITE] 更新商品分類資料。
【用途】 修改分類名稱、排序、父分類等屬性。僅傳入要修改的欄位,未傳入的欄位不會被覆蓋。
【呼叫的 Shopline API】
PUT /v1/categories/{category_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
分類資料變更立即生效,影響前台分類導覽顯示
不可復原,但可再次呼叫此工具覆蓋
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | Yes | 分類 ID | |
| category_data | Yes | 要更新的分類欄位,例如 {"name": "冬季特賣"} |