GraphQL API: Playback
Pause a track
When a track is paused on the client, the playback service should be notified in order to update the state of the source. You can do this by providing the source, the index of the playback item within the source, the device, and where in the track progress it was paused. It will respond with a MutationStatus
.
Request
mutation {
playback {
pause (deviceUuid: "deviceXYZ", sourceId: "AL:1811731", index: 0, elapsedTime: 200) {
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 { pause(deviceUuid: \"deviceXYZ\", sourceId: \"AL:1811731\", index: 0, elapsedTime: 200) { status } }}"}'
Response
{
"data": {
"playback": {
"pause": {
"status": "OK"
}
}
}
}