GraphQL API: Playback
Set repeat mode on a source
Tracks on an album can be repeated. The repeatMode
can be set to repeat all tracks, only one or turn off repeat mode. This is limited to Plus and Premium users and to the track rights.
REPEAT_ALL
will repeat all the tracks on the album. If you are on the last track of the album, skip and peek will return the first track of the album.REPEAT_ONE
will repeat the current track, skip will skip to the next track, and peek will return the current track.
Repeat mode does not apply to non-ending sources such as Stations and autoplay.
Mutation
mutation {
playback {
repeat(deviceUuid:"deviceXYZ",
sourceId:"AL:1811731", repeatMode: REPEAT_ALL ) {
status
}
}
}
* Add your OAuth bearer token to the Authorization
header
curl 'https://ce.pandora.com/api/v1/graphql/graphql' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{"operationName":null,"variables":{},"query":"mutation { playback { repeat(deviceUuid: \"deviceXYZ\", sourceId: \"AL:1811731\", repeatMode: REPEAT_ALL) { status } }}"}'
Response
{
"data": {
"playback": {
"repeat": {
"status": "OK"
}
}
}
}