suspend

Use the suspend command in the playbackSession namespace to suspend a specified session. The player will clear the stored item window of tracks and send a playbackStatus event to tell clients that the current item is null.

As described in a cloud queue use case in Play audio, if your app sends a play command when the cloud queue is empty, the player will attempt to resume playback of content that was playing prior to this command. For example, if the user was previously listening to a radio station or had a playlist queued, it will attempt to resume playback of that content.

When a session is suspended, the player won’t revert to the previous music source in this case. Instead, the player delivers a sessionInfo event with a suspended value of true for the suspended session. The session stays suspended until one of the following occurs:

The player receives a play command. If the player receives a play command, it sends a sessionInfo event with a suspended value of false.
The player receives either a loadCloudQueue or skipToItem command for the suspended session. The player follows these commands as specified.
The player receives a createSession command. The suspended session receives an ERROR_SESSION_EVICTED sessionError.
The user or an action picks a new music source. This can either be from the Sonos app or through the loadFavorite command. The suspended session receives an ERROR_SESSION_EVICTED sessionError.

Language
Credentials
URL
Click Try It! to start a request and see the response here!