ERP: Create or change a goods category
erp_category_saveCreate a goods category («відкрий розділ / категорію X», a new section of the catalog and of the connected web shop) or rename an existing one. 'category' = the category's name or «Parent / Child» path: an existing one is renamed with 'rename_to'; a name nobody has creates it (at the top, inside 'parent', or «Parent / New» creates New inside Parent). Products are put in a category with erp_product_update category=…; a product is hidden on the site with erp_product_update on_site=false. Moving, deleting or hiding a whole category is not possible here. Proposed write: one card. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": "<category>"
},
"name": "erp_category_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | For a NEW category: the category to create it in (name or path). | |
| category | Yes | ||
| rename_to | No |