update_key
Change an existing key's title, image, settings, or state without replacing its action; live changes apply instantly, others are staged.
Instructions
Change an existing key without replacing its action: title, title style, image, settings, or which state it shows.
Title text, image and settings changes on the profile a connected device is showing apply instantly, with no restart (undo with undo_live). Anything else (title style, current state, another profile, a device with staged changes) is staged for apply_changes; the result says which happened. A live settings change reaches the plugin as if edited in OpenDeck's own panel; if that key's settings panel is open in OpenDeck, reopen it to see the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto: apply instantly when possible, else stage; live: instantly or fail; staged: always stage. | auto |
| slot | Yes | Slot, or <slot>/child<N> for a child. | |
| image | No | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
| state | No | Which state to restyle (0-based) for multi-state actions; default all. | |
| title | No | ||
| device | Yes | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). | |
| profile | No | Profile id; defaults to the device's selected profile. | |
| title_style | No | Title look: show (bool), colour (#RRGGBB), size (int), family (font), style (Regular|Bold|Italic|Bold Italic), alignment (top|middle|bottom), underline (bool), stroke_colour, stroke_size, background_colour. | |
| current_state | No | ||
| settings_merge | No | Merged into the settings (JSON merge patch: null deletes a key). | |
| remove_settings | No | ||
| settings_replace | No | Replaces the settings entirely. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |