Drive > Files > Trash

Restore file

Restore a specific Directory or File from the trash

post/2/drive/{drive_id}/trash/{file_id}/restore

Path parameters

drive_idinteger required

the drive identifier

file_idinteger required

the file identifier

Request body

destination_directory_idinteger required

Destination directory identifier

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "cancel_id": "00000000-e89b-12d3-a456-000000000000"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.