Restore File or Folder Shares API
Restore File
If a file has been deleted, you can restore it using the following API call.
Info | Value |
---|---|
Request URL | /shares/_share_id_/folders/_folder_id_/files/_file_id_ |
Request VERB | PUT |
Example Request in JSON
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x https://test.host/shares/project-alpha/folders/goals/files/goals-2007-docx/restore
Restore Folder
If a folder has been deleted, you can restore it using the following API call.
Info | Value |
---|---|
Request URL | /shares/_share_id_/folders/_folder_id_/restore |
Request VERB | PUT |
Example Request in JSON
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x https://test.host/shares/project-alpha/folders/goals/restore