Search

Restore File

Last Updated: May 10, 2022

Articles

Use this function to restore a deleted file to the provided folder in Dropbox.

Syntax

Restore File (access_token, dropbox_path, restore_folder_path)

Parameters

Input Parameter Name Description
access_token Access token of Dropbox
dropbox_path Path of the deleted file
restore_folder_path Path to where the file needs to be restored

To know more about access_token, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Restored file path
  • On Failure returns 0 | Error Message

Sample

Restore File (ABCDCEF, /Invoices/Travel.pdf, /Travel)

  • Uses the access token ABCDCEF to connect to the Dropbox account, restores the deleted file /Invoices/Travel.pdf to /Travel.
    Returns the Restored file path on restoring the file.

To view all the Dropbox functions, click here.

Did you find what you were looking for?