Update label
labels_update_labelModify an existing label's name, icon, color, or description. Omitted fields remain unchanged.
Instructions
Update fields on an existing label.
Calls WS config/label_registry/update; only the parameters you pass
are sent, so omitted fields keep their current value.
Use when: renaming a label or changing its icon, color or description.
Returns: the updated label 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, e.g. 'mdi:alert'; omit to leave the current icon unchanged. | |
| name | No | New display name; omit to leave the current name unchanged. | |
| color | No | New label color name; omit to leave the current color unchanged. | |
| label_id | Yes | Label registry ID to update; obtain it from labels_list_labels. | |
| description | No | New free-text description; omit to leave the current description unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||