Toggle Shuffle For User’s Playback
Developing
PUT
/me/player/shuffle
category-player
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.spotify.com/v1/me/player/shuffle?state=' \
--header 'Authorization;'
Response Response Example
200 - Example 1
{
"error": {
"message": "string",
"status": 0
}
}
Request
Query Params
state
string
required
false : Do not shuffle user's playback.
device_id
string
optional
Header Params
Authorization
string
required
The access token must have been issued on behalf of a user.
The access token must have the
user-modify-playback-state
scope authorized in order to control playback.Responses
Modified at 2022-09-12 10:04:50