getMusicFolders

Returns all configured top-level music folders.

http://your-server/rest/getMusicFolders Since 1.0.0

Returns all configured top-level music folders. Takes no extra parameters.

Parameters

Takes no extra parameters.

Example

Result

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

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "AwesomeServerName",
    "serverVersion": "0.1.3 (tag)",
    "openSubsonic": true
    "musicFolders": {
      "musicFolder": [
        {
          "id": "1",
          "name": "music"
        },
        {
          "id": "4",
          "name": "upload"
        }
      ]
    }
  }
}
{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "musicFolders": {
      "musicFolder": [
        {
          "id": "1",
          "name": "music"
        },
        {
          "id": "4",
          "name": "upload"
        }
      ]
    }
  }
}
Field Type Req. OpenS. Details
musicFolders musicFolders Yes The directory content
Last modified April 8, 2023: Simplify OpenSubsonic API (#30) (616a145)