Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
// Successful request DELETE /api/v2/assets/dLv2rP7fq3qaddAXitKK/image_crops/7 200 { "image_crops": [] }
// Asset not found DELETE /api/v2/assets/:asset_id/image_crops/8 404 { "error": "asset not found" }
// Image crop not found DELETE /api/v2/assets/hXPnU8UTdg3w4Iyn9rpD/image_crops/:image_crop_id 404 { "error": "Couldn't find ImageCrop with 'id'=:image_crop_id [WHERE \"image_crops\".\"asset_id\" = $1]" }
// If deletion fails DELETE /api/v2/assets/XoC-BL1Ak1u22r7M5WMp/image_crops/9 400 { "error": "Error while deleting image crop. Please try again or contact your administrator." }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |