updateCollection

Updates a collection.

http://your-server/rest/updateCollection

Updates a collection. Only the owner of a collection is allowed to update it. This endpoint must be accessed using an HTTP POST request.

Request Body

The request payload should be provided in the body as a JSON object, as specified by the UpdateCollectionRequest schema. Only the fields specified in the request payload will have an effect on a collection.

{
  "collectionId": "23785995",
  "name": "new name",
  "comment": "this is a new comment"
}
{
  "collectionId": "23785995",
  "add": [
    {
      "type": "album",
      "id": "1234"
    }
  ]
}
{
  "collectionId": "23785995",
  "move": {
    "fromStart": 0,
    "fromEnd": 5,
    "to": 20
  }
}
{
  "collectionId": "23785995",
  "remove": [0, 1, 2, 6]
}

Example request

Result

An empty subsonic-response element on success. In case of an error, a standard HTTP error code is returned with a descriptive message.

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "AwesomeServerName",
    "serverVersion": "0.1.3 (tag)",
    "openSubsonic": true
  }
}