The playlists/:id/activate endpoint enables you to activate a playlist as the one you want to play media of.
playlists/:id/activate
PUT
id: ID of the playlist you want to activate
{
"id": -1
}Insufficient permissions
{
"data": [
"You are not authorized to access this resource."
],
"status": "notAuthorized",
}id is missing
{
"data": [
"id is required"
],
"status": "requestError",
}{
'data': [{ // Contains the requested data
'activated': -1 // ID of the playlist you just activated
}],
'meta': {},
'status': 'ok',
'time': 'xx.xxxxxxxxxxx'
}