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 NameData TypeDescription
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

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:true,&quot;id&quot;:&quot;4000000056156&quot;,&quot;errors&quot;:null},{&quot;success&quot;:false,&quot;id&quot;:&quot;232323&quot;,&quot;errors&quot;:{&quot;errorMessage&quot;:null,&quot;errorCode&quot;:&quot;UNPROCESSABLE_ENTITY&quot;,&quot;httpCode&quot;:&quot;422&quot;}},{&quot;success&quot;:false,&quot;id&quot;:&quot;400000005634&quot;,&quot;errors&quot;:{&quot;errorMessage&quot;:null,&quot;errorCode&quot;:&quot;FORBIDDEN&quot;,&quot;httpCode&quot;:&quot;403&quot;}},{&quot;success&quot;:false,&quot;id&quot;:&quot;232&quot;,&quot;errors&quot;:{&quot;errorMessage&quot;:null,&quot;errorCode&quot;:&quot;UNPROCESSABLE_ENTITY&quot;,&quot;httpCode&quot;:&quot;422&quot;}}]}