Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Richard T. S.
10 years agoNew member | Level 2
How to Undelete a File via the API
I tried to do a restore ... that did not seem to work.
Is undelete only available via the Web interface ?
Richard T. S.
10 years agoNew member | Level 2
I can't believe this bit me again. The first time was with the Android V1 API. Now with the .NET API
The Scenario:
From the WebPage Access I delete a file.
Then from the API I detect the file does not exist (Fails on the GetMetadata request for the path.)
So I check to see if I can restore by calling ListRevisions. It shows file is deleted. I get 3 back FileMetadata entries: (Deleted, MostRecent, Orignal).
If I try yo restore the Delete file it fails ... indicating ivalid revision ... but there is NOTHING in the FileMetaData that indicates the first entry is Deleted ... i.e. should the IsDeleted flag be set ?
I tried to use Files.RestoreAsync using the Revison from all 3 FileMetadata returned from ListRevisions and was not able to restore.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!