The playlists endpoint retrieves or modifies your playlists.
playlists
playlists/:id
GET, POST, DELETE
Insufficient permissions
{
"data": [],
"status": "notAuthorized",
}{
'data': [{ // Contains the requested data
'active': false, // Is the playlist currently selected for playback?
'count': 0, // Amount of songs in this playlist
'id': -1, // ID of the playlist
'name': 'xxx' // Name of the playlist
}],
'meta': {},
'status': 'ok',
'time': 'xx.xxxxxxxxxxx'
}name: Name of the new playlist
media: Array of media objects used to fill the playlist
{
"name": "xxx",
"media": [{
"cid": "",
"title": "xxx",
"author": "xxx",
"image": "xxx",
"duration": 0,
"format": 1,
"id": -1
}]
}Insufficient permissions
{
"data": [
"You are not authorized to access this resource."
],
"status": "notAuthorized",
}name or media is missing
{
"data": [
"xxxxxxxx is required"
],
"status": "requestError",
}{
'data': [{ // Contains the requested data
'active': false, // Is the playlist currently selected for playback?
'count': 0, // Amount of songs in this playlist
'id': -1, // ID of the playlist
'name': 'xxx' // Name of the playlist
}],
'meta': {},
'status': 'ok',
'time': 'xx.xxxxxxxxxxx'
}id: ID of the playlist you want to delete
{
'data': [],
'meta': {},
'status': 'ok',
'time': 'xx.xxxxxxxxxxx'
}