We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Patrik H.
8 years agoExplorer | Level 4
list_revisions and file deletion information
Dear Dropboxers,
In API v1, the list of revisions for a file included information that seems to missing in the new API v2.
Specifically:
A. In the old API, if a while was created, then deleted, then re-created, the intermediate deletion was visible in the results returned by /revisions (as a "revision" which simply had the "is_deleted" flag set to true, and file size zero). In the results returned by the API v2 "list_revisions" call, there is only a global "is_deleted" flag at the very top, indicating whether the file is currently deleted. In the scenario of creation-deletion-creation, it is completely invisible that the file was for a while deleted.
B. In the old API, when a file was deleted, the information returned by /revisions showed who (which user) had deleted the file. In the new API v2 "list_revisions", there is only the global "is_deleted" flag at the top, and the server timestamp indicating when the file was deleted. There is no information on which user deleted the file.
Looking at the "Version history" available on the Dropbox website, for the same file, does show the intermediate deletion, and also who deleted the file (for a file in a shared folder). So Dropbox internally does have all this information, still.
My questions are then:
1. Did I miss something, or is it indeed the case that /list_revisions is crippled in the way I described, compared to the earlier API?
2. If indeed it is missing information, any plans on changing this?
My use case is an app which provides a nice interface to the full history of a Dropbox account, and easy reversion to a previous state. This has worked remarkably well with API v1, but it looks like API v2 is a significant step in the wrong direction in many ways (for example, apparently also limiting the number of revisions to 100 now, from 1000 in API v1).
Thanks for any help!
Patrik
- Hi Patrik, thanks for the detailed post. Your description of the current state of the revisions functionality in API v2 is accurate. I'm sending this along to the team to see if we can improve this in API v2 in the future, but I can't make any promises or offer a timeline.
- Greg-DBDropbox StaffHi Patrik, thanks for the detailed post. Your description of the current state of the revisions functionality in API v2 is accurate. I'm sending this along to the team to see if we can improve this in API v2 in the future, but I can't make any promises or offer a timeline.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!