update_category
Update product category attributes such as name, sort order, and parent. Pass only the fields to change; unpassed fields remain untouched. Changes apply immediately to storefront navigation.
Instructions
[WRITE] 更新商品分類資料。
【用途】 修改分類名稱、排序、父分類等屬性。僅傳入要修改的欄位,未傳入的欄位不會被覆蓋。
【呼叫的 Shopline API】
PUT /v1/categories/{category_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
分類資料變更立即生效,影響前台分類導覽顯示
不可復原,但可再次呼叫此工具覆蓋
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category_id": "<category_id>",
"category_data": "<category_data>"
},
"name": "update_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | Yes | 分類 ID | |
| category_data | Yes | 要更新的分類欄位,例如 {"name": "冬季特賣"} |