Update category
labels_update_categoryUpdate a category's name or icon within a registry scope. Only provided fields change, so omitted ones keep their current value.
Instructions
Update fields on an existing category.
Calls WS config/category_registry/update; only the parameters you
pass are sent, so omitted fields keep their current value.
Use when: renaming a category or changing its icon within its scope.
Returns: the updated category registry dict.
Errors: on a WS failure, returns {"error": "<message>"} instead of
raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | New mdi icon identifier; omit to leave the current icon unchanged. | |
| name | No | New display name; omit to leave the current name unchanged. | |
| scope | Yes | Registry scope the category belongs to, e.g. 'automation'. | |
| category_id | Yes | Category registry ID to update; obtain it from labels_list_categories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||