toggleShufflePlayback

suspend fun toggleShufflePlayback(shuffleState: Boolean, deviceId: String? = null): HttpStatusCode(source)

Set the shuffle state of the user's player

Return

HttpStatusCode.NoContent if the request succeeded, HttpStatusCode.NotFound if the device was not found, HttpStatusCode.Forbidden if the user is non-premium

Parameters

shuffleState

The new shuffle state

deviceId

The device ID, if not provided, the user's current active device is targeted