ShareFile

Restore deleted items in bulk using the ShareFile API

If multiple files were deleted by mistake or can’t be found in the recycle bin, this method can help you finding and restoring those items in bulk.

Important:

It is not possible to recover a file after 45 days. If you deleted a file from the Recycle Bin over 45 days, your file cannot be recovered.

Instructions

  1. Obtain the Deleted Items ID via a report.

    Refer to the Usage Report for how to obtain an activity report. The Event ID field correspond to the File/Folder ID. You will need the File/Folder ID in order to restore the items using the API.

  2. Restore the items using the API.

  3. Go to https://api.sharefile.com/ and sign in.

  4. Navigate to this URL https://api.sharefile.com/docs/resource?name=Items.

  5. Scroll down until you find the section Restore Expired Items to their Original Location.

  6. Select on the post and add the File ID’s that you want to recover using the following query format:

    ["Item ID1", "Item ID2", "Item ID3"]

    We recommend keeping under 5000 items to avoid timeouts of large operations.

    For example, let´s say you want to restore the first item, you will enter the File/Folder ID in a format it like this

    ["fiXXXXXXXXXXXX"]

    If you want to recover the 2 first files on the list on the same query, you are required to add a comma:

    ["fofXXXXXXXXXX", "fiXXXXXXXXXX"]

    Note:

    The query should not end in a comma.

  7. Select Send Request again once all the File ID’s are added, you should be able to locate the deleted files back on their original location.

Restore deleted items in bulk using the ShareFile API