One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
AmanSingh
4 years agoExplorer | Level 3
"invalid_revision" error while restoring deleted file through API
Hi,
Using Dropbox Java SDK v4.0.1 for development. I am trying to restore deleted files using -
files().restore(path, rev)
But its throwing an error "invalid_revision".
I am getting path from metadata for deleted file in listFolder() with includeDeleted = true.
And I am getting rev from listRevisions() for the file. Getting the latest revision from that list.
Is this API correct to do this task or is there anything to help ?
Thanks
Aman
- Greg-DB
Dropbox Staff
I'm closing this as a duplicate in favor of your existing thread.
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 hours ago
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 or Facebook.
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!