update shortcuts (beta)
PUT /{{deviceId}}/shortcuts
This endpoint is used to update the shortcuts configuration for a specific device identified by deviceId
.
Request Body
The request body must be a JSON object structured as follows:
-
shortcuts: An object containing the modes for the shortcuts.
-
modes: An object that defines different modes.
-
day: An object representing the day mode.
-
content: An array of commands to be executed during the day. Each command is an object with:
-
cmd: A string representing the command type (e.g., "track-play").
-
params: An object containing parameters for the command:
-
card: A string representing the card identifier.
-
chapter: A string representing the chapter name.
-
track: A string representing the track key. For Yoto Daily, this can also equal , which will dynamically play the track for the current day.
-
-
-
-
night: An object representing the night mode.
- content: An array of commands to be executed during the night (can be empty).
-
-