API reference
Collections
Manual and smart collections (P3-08, P3-09).
Paths are relative to /api/v1 on your server.
List collections
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|
libraryId | query | string (uuid) | |
itemId | query | string (uuid) | |
- 200Success.
application/json · object - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks library:view, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope
Create a collection
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
- 201Success.
application/json · CollectionDetail - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope
Read a collection
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
include | query | string | |
- 200Success.
application/json · CollectionDetail - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks library:view, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
Update a collection
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
- 200Success.
application/json · Collection - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
Delete a collection
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
- 204Done; no body.
- 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
POST/collections/{id}/items#Add items
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
- 200Success.
application/json · CollectionDetail - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
DELETE/collections/{id}/items#Remove items
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
- 200Success.
application/json · CollectionDetail - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
PUT/collections/{id}/order#Reorder a collection
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
| Parameter | In | Type | Description |
|---|
id required | path | string (uuid) | |
- 200Success.
application/json · CollectionDetail - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks playlist:own, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see. application/json · ErrorEnvelope
POST/collections/preview#Preview a smart collection’s rules
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json · object
- 200Success.
application/json · object - 400
VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope - 403
FORBIDDEN: the account lacks library:view, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope
No endpoint here matches. Try another word, or look in another area.