Update category
update_categoryUpdate a category (ids from get_item_requirements), any combination in one call: rename it; holdsItems, the container switch for its items (true = its items can hold other items: vehicles, cases, carts; false = its items are not offered as containers, even where a parent category says yes, but an item that already holds things or whose own switch says yes stays a container; null = follow the parent category again); defaultHomeLocationId, where its new items live (a location id from search_resources; null clears it); hideFieldIds / showFieldIds, inherited fields (org-wide or from a parent category; a field id or "field:") this category and its sub-categories do not use: the field disappears from their items, and their values are kept and come back when it is shown again. A field defined ON this category cannot be hidden. Moving a category is app-only. Nothing is written if one part is refused. Requires the manager role. Idempotent.
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": {
"categoryId": "<categoryId>"
},
"name": "update_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name | |
| categoryId | Yes | Category id | |
| holdsItems | No | Container switch: true = its items can hold other items, false = its items are not offered as containers (an item that already holds things or whose own switch says yes stays one), null = follow the parent category | |
| hideFieldIds | No | Inherited fields (ids or "field:<label>") this category and its sub-categories do not use | |
| showFieldIds | No | Hidden fields (ids or "field:<label>") to show again | |
| defaultHomeLocationId | No | Location id new items of this category live in; null clears it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Category name as stored (trimmed) | |
| note | No | Set when nothing was changed | |
| categoryId | No | The category's id | |
| holdsItems | No | The category's own container switch; null = it follows its parent | |
| hiddenFieldIds | No | Inherited fields this category hides | |
| defaultHomeLocationId | No | Where its new items live; null = none set |