togglePlayPause

Use the togglePlayPause command in the playback namespace to toggle the playback state on the given group, if possible. Upon completion of the command, the player sends playbackStatus events to all subscribers. When toggling from pause to play, this functions similar to the play command. When transitioning from play to pause, it functions like the pause command. See those commands for more details about the functionality of those states.

Path Params
string
required

Target groupId

Headers
uuid
deprecated

Client API Key for the integration. Required in V1 but deprecated in V2.

uuid

Correlation UUID for data tracking purposes

Responses

400

The given resource/object identifier is invalid

401

A client has not provided authorization credentials to perform a command

403

A client does not have the correct permissions to perform a command

500

Sonos has experience an unexpected condition it is unable to recover from

503

Player is unable to reach the service.

Language
Credentials
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json