Set Repeat Mode On User’s Playback
Developing
PUT
/me/player/repeat
category-player
repeat-context, and off.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.spotify.com/v1/me/player/repeat?state=' \
--header 'Authorization;'
Response Response Example
200 - Example 1
{
"error": {
"message": "string",
"status": 0
}
}
Request
Query Params
state
string
required
track will repeat the current track.
context will repeat the current context.
off will turn repeat off.
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