getPlaylistFolders

Returns all folders in a user’s playlist organization.

OpenSubsonic version: 1

OpenSubsonic extension name playlistFolders (As returned by getOpenSubsonicExtensions)

http://your-server/rest/getPlaylistFolders

Returns all folders in a user’s playlist organization as a flat list. Clients build the hierarchy by matching each folder’s parentId to another folder’s id, and place playlists using the playlistFolderId returned by getPlaylists.

Parameters

ParameterReq.OpenS.DefaultComment
usernameNoYesIf specified, return folders for this user rather than for the authenticated user. The authenticated user must have admin role if this parameter is used.

Example

Result

A subsonic-response element with a nested playlistFolders element on success.

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "AwesomeServerName",
    "serverVersion": "0.1.3 (tag)",
    "openSubsonic": true,
    "playlistFolders": {
      "playlistFolder": [
        {
          "id": "folder-dj",
          "name": "DJ Sets",
          "sortOrder": 1
        },
        {
          "id": "folder-2026",
          "name": "2026",
          "parentId": "folder-dj",
          "sortOrder": 1
        }
      ]
    }
  }
}
Does not exist.