Update Card Builder style preset
card_builder_update_style_presetUpdate an existing style preset's CSS data or metadata in Home Assistant by supplying only the fields to change; omitted fields stay unchanged.
Instructions
Update fields of an existing Card Builder style preset.
Sends only the parameters that are not omitted to
card_builder/style_presets/update; any parameter that is supplied
(including data) fully replaces the previous value for that field,
with no way to recover the prior value afterwards.
Use when: adjusting an existing preset's style data or metadata.
Not for: creating a new preset — use
card_builder_create_style_preset.
Returns: the updated style-preset dict as returned by the WebSocket
command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Replacement CSS-style configuration blob. Omit to leave the current data unchanged. | |
| name | No | New display name. Omit to leave the current name unchanged. | |
| description | No | New description text. Omit to leave it unchanged. | |
| style_preset_id | Yes | Id of the preset to update, from card_builder_list_style_presets. | |
| extends_preset_id | No | Replacement parent preset id to inherit from. Omit to leave inheritance unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||