Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
asset_id required |
Asset ID Validations:
|
// Successful request POST /api/v2/collections/jg2JP_9S8fgeyV329THf/assets { "asset_id": "K9KLrMpCrvd3qhKq_8_v" } 200 { "message": "asset successfully added to collection" }
// Failed request, collection not found POST /api/v2/collections/not-found-id/assets { "asset_id": "9fh0LOnC-gGcqjvAtq0m" } 404 { "error": "collection not found" }
// Failed request, asset not found POST /api/v2/collections/UPeuRofIxLcDWpm8QGEM/assets { "asset_id": "not-found-id" } 400 { "error": "asset not found" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |