We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Richard T. S.
11 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 ?
22 Replies
Replies have been turned off for this discussion
- Richard T. S.10 years agoNew member | Level 2
The only thing is the DBPath nothing else useful except the exception.
PersistLog just makes a copy of the error ... otherwise it's just a print statement.
This is in an application context .. So the file is in the top level of my APP folder.
The DBPath is: "/AccountInfo-DO-NOT-DELETE-DO-NO-SHARE"
- Greg-DB10 years ago
Dropbox Community Moderator
What about md.Rev? The exception is reporting an invalid revision, so that value may be relevant.
- Richard T. S.10 years agoNew member | Level 2
mClient is the DropboxClient opened with my APP Token
Note: the call to ListRevisionsAsync worked!
md.Rev is from the FileMetadata that is in the list of entries returned from ListRevisionsAsync.
I looked at it ... It seemed reasonable ... a string with numbers and a few letters in it ... maybe Base64 or Hex encoded ... I do not remember exactly.
NOTE: I iterated over the list of FileMetadata returned from ListRevisionsAsync (there were 3) .. they ALL generated an exception.
- Greg-DB10 years ago
Dropbox Community Moderator
Yes, but can you share the actual rev values? We'll look into why the API isn't accepting them.
- Richard T. S.10 years agoNew member | Level 2
The exception had a string of the form: {"invalid_revision/."}
The revisions in the order of failing are:
1512685407b 1452685407b 1442685407b
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks! With those, I was able to track down the conditions necessary to reproduce this. We'll work on a fix.
- Greg-DB10 years ago
Dropbox Community Moderator
This should be working properly now.
- Richard T. S.10 years agoNew member | Level 2
Was this a server side issue ? Or do I need a new version of the API ?
- Greg-DB10 years ago
Dropbox Community Moderator
This was a server-side issue, so it should work now with the same version of the SDK. Please give it a try and let us know if you run in to any issues.
- Richard T. S.10 years agoNew member | Level 2
I can confirm that it has been fixed ...
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!