Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

update shortcuts (beta)

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).

Responses

200 ok application/json

No schema available for this response.

Body application/json

shortcuts object

Path Parameters

deviceId string Required
PUT
/device-v2/{deviceId}/shortcuts
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Request Body
Terminal window
curl "https://api.yotoplay.com/device-v2/{deviceId}/shortcuts"
--header "Authorization: Bearer [YOUR_TOKEN]"