Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
asset_id required |
Asset ID Validations:
|
// Failed request POST /api/v2/assets/not-found-id/restore 404 { "error": "asset not found" }
// Trying to restore asset that is not in trash bin POST /api/v2/assets/p2fs58BoVHMY_SEOUEwt/restore 400 { "error": "Can not restore Assets that is not in trash bin" }
// Successful request POST /api/v2/assets/wCqlpqcXTsYOh-zsDplS/restore 200 { "ok": "ok" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |