Restore deleted resources
POST {{baseUrl}}/v1/recycleBin/restore
This API restores the deleted resources specified in the API request. Additionally, the parent resources are also restored.
OAuth Scope
Desk.settings.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
ids (required) | <list> | Array containing the IDs of the resources to restore |
isChildNeedToBeRestored | <boolean> | Key that denotes whether the child resources must be restored or not. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":true,"id":"4000000056156","errors":null},{"success":false,"id":"232323","errors":{"errorMessage":null,"errorCode":"UNPROCESSABLE_ENTITY","httpCode":"422"}},{"success":false,"id":"400000005634","errors":{"errorMessage":null,"errorCode":"FORBIDDEN","httpCode":"403"}},{"success":false,"id":"232","errors":{"errorMessage":null,"errorCode":"UNPROCESSABLE_ENTITY","httpCode":"422"}}]}