You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
user44
8 months agoExplorer | Level 4
How to get id of a deleted folder?
While building an integration with Dropbox I am running into typical situation of deleting folders at my app's end when a subject folder is deleted by the user on Dropbox. Via webhooks I am getting M...
- 8 months ago
Hello user44,
You are correct that the /2/files/list_revisions endpoint will only work for files.There isn’t a way to retrieve the deleted folder's id with the Dropbox API. If you have the previous FolderMetadata, you can align it based on the path from the DeletedMetadata.
user44
Explorer | Level 4
Thanks for replying, the call /2/files/list_revisions is only for files I guess, and not for the folders.
I am using Dropbox's Java SDK and I am getting this erxception thrown while reaching it with a path to a folder instead of file : com.dropbox.core.v2.files.ListRevisionsErrorException: Exception in 2/files/list_revisions: {".tag":"path","path":"not_file"}
So, looks like the bottom line is, there is no way to get deleted folder's id, and we have to align the webhook notification with our system with path only.
iNeil
8 months agoDropbox Engineer
Hello user44,
You are correct that the /2/files/list_revisions endpoint will only work for files.
There isn’t a way to retrieve the deleted folder's id with the Dropbox API. If you have the previous FolderMetadata, you can align it based on the path from the DeletedMetadata.
- user448 months agoExplorer | Level 4
Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 5 years agoIf 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!