Need to see if your shared folder is taking up space on your dropbox đšâđ»? Find out how to check here.
Forum Discussion
CooperLiu
9 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 revisi...
iNeil
Dropbox Community Moderator
6 months agoHi 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
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!