Developer docs · Problems
Already a member
HTTP 409 · https://impartire.com/problems/already-member
What it means
The asset is already an item of this collection or playlist (an asset appears in one once); item_id in the body is the existing item.
What to do
Nothing to add: the asset is already in the collection or playlist, as the item item_id. To move it, PUT …/items/order on that collection or playlist.
Example
Sent as application/problem+json with status 409. detail varies with the request; branch on type.
{
"type": "https://impartire.com/problems/already-member",
"title": "Already a member",
"status": 409,
"detail": "Asset 6f1c2a4e-0b7d-4f7e-9a51-2d3c4b5a6e7f is already in collection 5a7c1e2d-3b4f-4a6e-9d8c-7b6a5f4e3d2c (item 8e9f0a1b-2c3d-4e5f-8a6b-7c8d9e0f1a2b).",
"instance": "/api/v1/collections/5a7c1e2d-3b4f-4a6e-9d8c-7b6a5f4e3d2c/items",
"request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M",
"item_id": "8e9f0a1b-2c3d-4e5f-8a6b-7c8d9e0f1a2b"
}