Collections

Add an object to a collection

Changed on

Adding the same object twice is a no-op rather than a duplicate. A pinned collection refuses anything but its own type, and an object that does not exist is refused rather than stored as a dangling id.

put/collections/{collection_id}/items

Request

  • Base URL
    https://develop.ampache.dev/rest/8/json
  • URL
    https://develop.ampache.dev/rest/8/json/collections/{collection_id}/items
  • Auth
    • HTTP bearer
    • or API key in header auth
    • or API key in query parameter auth

Path parameters

collection_idstring required

Query parameters

idstring
object_typestring

Type of the object

Request body

idstring required
object_typestring

Type of the object

Response

Confirmation the object was added

successstring

Changes