We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

jqshenker's avatar
jqshenker
New member | Level 2
8 years ago

Pagination not available for list_revisions

API v2 allows access to a paltry 100 revisions (for one, this makes unlimited version history useless for apps which offer backup-style features on top of the revisions feature.)

 

You should be able to page through all revisions.

2 Replies

  • iNeil's avatar
    iNeil
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 months ago

    Hi jqshenker​,

    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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    Thanks for writing this up! I can't make any promises as to if/when this would be done, but I'l sending this along to the team.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 4 hours ago
411 Following

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!