createPlaylistFolder
Creates a playlist folder.
Categories:
Opensubsonic:
OpenSubsonic version: 1
OpenSubsonic extension name playlistFolders (As returned by getOpenSubsonicExtensions)
http://your-server/rest/createPlaylistFolder
Creates a playlist folder in the authenticated user’s playlist organization.
Parameters
| Parameter | Req. | OpenS. | Default | Comment |
|---|---|---|---|---|
name | Yes | Yes | The human-readable name of the playlist folder. | |
parentId | No | Yes | ID of the parent playlist folder. Omit to create a root-level folder. | |
sortOrder | No | Yes | Position among siblings, as a client-assigned integer. If omitted, the server assigns a position after the existing siblings. |
A parentId that does not exist or belongs to another user’s tree returns error 70, so that a user cannot probe for folder IDs in other users’ trees. See the extension description for ordering semantics and error handling.
Example
http://your-server/rest/createPlaylistFolder.view?name=2026&parentId=folder-dj&u=demo&p=demo&v=1.16.1&c=AwesomeClientName&f=jsonResult
A subsonic-response element with a nested playlistFolder element on success.
{
"subsonic-response": {
"status": "ok",
"version": "1.16.1",
"type": "AwesomeServerName",
"serverVersion": "0.1.3 (tag)",
"openSubsonic": true,
"playlistFolder": {
"id": "folder-2026",
"name": "2026",
"parentId": "folder-dj",
"sortOrder": 2
}
}
}Does not exist.