UpdateCollectionRequest

Request payload for updating a collection.

Should be used in the UpdateCollection endpoint. Only the fields supplied 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]
}
FieldTypeReq.OpenS.Details
collectionIdstringYesYesThe collection ID.
namestringNoYesThe human-readable name of the collection. Cannot be an empty string.
commentstringNoYesThe collection comment.
publicbooleanNoYestrue if the collection should be visible to all users, false otherwise.
addCollectionItemID[]NoYesAdd the specified items to the collection. Items are appended to the tail of the collection.
moveMoveRangeNoYesMove items from the original position to another in the collection.
removeArray of integerNoYesRemove the items at the specified positions from the collection.

Only one of add, move, and remove can be non-empty in a single request.