create_category
Create a new product category in your Shopline store, optionally setting a parent category to build a hierarchical structure.
Instructions
[WRITE] 建立新商品分類。
【用途】 在 Shopline 商店中建立新的商品分類,可指定父分類以建立層級結構。
【呼叫的 Shopline API】
POST /v1/categories
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, category: dict。
【副作用】
在商店分類列表中新增一筆分類記錄
若 parent_id 不存在,API 可能回傳錯誤
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_data | Yes | 分類資料,例如 {"name": "夏季新品", "parent_id": null} |