delete_category
Permanently remove a product category from your Shopline store. Use to clean up disabled or incorrectly created categories, with automatic unlink of associated products.
Instructions
[WRITE] 刪除商品分類。
【用途】 從 Shopline 商店中永久刪除指定分類。適合清除已停用或錯誤建立的分類。
【呼叫的 Shopline API】
DELETE /v1/categories/{category_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
永久刪除分類記錄,不可復原
原本屬於此分類的商品將解除分類關聯,商品本身不會被刪除
若有子分類,子分類的父分類關聯可能一併受影響(視 Shopline 實作而定)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | Yes | 分類 ID |