We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
CooperLiu
8 years agoNew member | Level 2
How could I get the all revisions of one file with API v2
How could I get the all revisions of one file with API v2, the v1 could get the recent 1000 revisions v2 the parameter limit range is [1, 100] so how should I get the all revisions or how many revisions about the file?
Thanks.
6 Replies
- iNeil2 months ago
Dropbox Community Moderator
Hi CooperLiu, Excelmate, and HaPsantran,
There has been a recent enhancement to the Dropbox API’s /2/files/list_revisions endpoint that may be helpful for your implementation. The endpoint now supports two new capabilities:
- before_rev (optional request parameter): This allows you to request revisions that occurred before a specific revision ID. It can be set using the rev of the last entry from a previous response. Currently it is only supported when using path mode in your request.
- has_more (response field): This boolean indicates whether additional revisions are available. If true, you can continue retrieving older revisions by making another call with the before_rev request parameter. If false, it means all available revisions have been returned, and there are no more entries to fetch.
These updates have improved the pagination functionality for file revision history. However, this functionality is not yet available in the Dropbox SDKs. To use the new capabilities, you’ll need to make direct HTTP requests to the /2/files/list_revisions endpoint.
If you have any questions, please don’t hesitate to reach out to us.
Best regards,
API Support Team - Greg-DB3 years ago
Dropbox Community Moderator
Excelmate No, unfortunately I don't have any changes to report on this.
- Excelmate3 years agoExplorer | Level 4
Any further update on this, I have the api proceedure running, but cannot get more than 100 updates.
I am trying to replicate the version history option that is available on the web by right clicking on a file.
Short of running a twice daily procedure going forward (can easily be more than 100 updates on a file during a day), not sure what else I can do.
- Greg-DB6 years ago
Dropbox Community Moderator
HaPsantran Thanks for the feedback. I don't have an update on this request but I'll add your note and follow up here if/when I have any news.
- HaPsantran6 years agoHelpful | Level 5
No pagination or even a way to specify a datetime range within which we are looking for 100 revisions? It's disappointing to have months of version history available in the Dropbox web UI and unavailable via the API.
- Greg-DB8 years ago
Dropbox Community Moderator
Unfortunately there isn't a way to list more than that using API v2, but I'll pass this along as a request.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 15 minutes ago
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 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!