We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
zishanmohsin
10 years agoExplorer | Level 3
Restore Folder
How can we restore a dropbox folder using java api?
Greg-DB
Dropbox Community Moderator
3 years agoHchauhan No, unfortunately there isn't an update on this.
Hchauhan
3 years agoNew member | Level 2
Thanks, Greg. Is there any workaround using api?
- Greg-DB3 years ago
Dropbox Community Moderator
Hchauhan You'd need to use the /2/files/restore endpoint (or corresponding method in an SDK) to restore each file as needed.
- Hchauhan3 years agoNew member | Level 2
Thanks. I understand. Calling ListFolderAsync on a deleted folder returns path not found error. How do I get the names\ids of the files which are in the deleted folder so I can restore them?
- Greg-DB3 years ago
Dropbox Community Moderator
Hchauhan The Dropbox API does not currently support directly listing the contents of a deleted folder, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. To work around that, you would need to either use the metadata you had previously retrieved from the API before the deletion, or list the items using a non-deleted parent folder, or recreate the deleted folder and then list the deleted contents.
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!