Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (41 sloc) 1.58 KB

Playlist Service : update

GET playlist/update

Description

Update a playlist. Require playlist owner authentication except if the playlist is public and collaborative.

NB : If you provide track_ids with this method, the actual tracks of the playlist will be removed before adding the new ones.


Requires authentication

Requires a valid app_id and a valid user_auth_token.


Parameters

  • app_id - required : Your Application ID (see Application authentication)
  • user_auth_token - required : The authenticated user token (see User authentication)
  • playlist_id - required : The playlist ID to update.
  • name - optional : Name for the playlist.
  • description - optional : Description for the playlist.
  • is_public - optional : Flag to make the playlist public.
  • is_collaborative - optional : Flag to make the playlist collaborative.
  • track_ids - optional : Tracks to replace the initial tracks with.

Example

Request

 http://www.qobuz.com/api.json/0.2/playlist/update?app_id=100000000&playlist_id=925206&name=greatPlaylist&user_auth_token=MyUsErToKeN

Return

{
    "id": 925206,
    "name": "greatPlaylist",
    "description": "",
    "tracks_count": 0,
    "users_count": 0,
    "duration": 0,
    "created_at": 1431682684,
    "updated_at": 1431682758,
    "is_public": true,
    "is_collaborative": false,
    "owner": {
        "id": 12345,
        "name": "mylogin"
    }
}