Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
// Failed request DELETE /api/v2/assets/not-found-id/media 404 { "error": "asset not found" }
// Succesful request DELETE /api/v2/assets/faNNZ8yt0dUA8dWA0-WW/media 200 { "asset": { "id": "faNNZ8yt0dUA8dWA0-WW", "external_id": null, "parent_id": null, "project_id": null, "owner": "admin-user-85@example.com", "title": "Sample Asset", "description": "Sample asset description.", "category": "test asset category", "tags": [ "test", "tag" ], "ai_tags": [ "test", "tag" ], "status": "open", "media_type": "image", "original_filename": "test_filename.jpg", "drop_folder_id": null, "md5_sum": "c6779ec2960296ed9a04f08d67f64422", "created_date": "2023-11-27T09:42:57.051Z", "modification_date": "2023-11-27T09:42:57.142Z", "deleted": null }, "errors": { "error": "No media found on this asset.", "status": 400 } }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |