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

yanjobin's avatar
yanjobin
Explorer | Level 3
3 years ago

Dropbox API suddenly malfunctionning

Hello,

We have been using the Dropbox api in our application for a couple years now and it has always worked flawlesly.

 

Since about last week, the list_folder endpoint is no longer returning all the files and folders in a any given sub folder.

For example, list_folder is only returning 4 entries with has_more set to false, but there are actually 78 files and folders in the directory specified.

This has always worked before, nothing changed on our side.

 

We have not migrated to the short-lived access tokens yet. However, I don't think this is the issue because the API calls do work, just not as intended.

 

Thank you

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Its sounds like your team recently switched to the "team space" configuration. By default, API calls operate in the "member folder" of the connected account, not the "team space", so you wouldn't see anything in the team space when using the API by default. You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in the Team Files Guide.

     

    • yanjobin's avatar
      yanjobin
      Explorer | Level 3

      Configuring the api to operate in the team space using the "Dropbox-Api-Path-Root" header fixed the problem.

       

      Thank you

    • Jay P's avatar
      Jay P
      New member | Level 2

      Greg...I connect to the DB API via Claris Connect. 

      I am experiencing the same problems as outlined in this post. 

      Do you have any information on how to update the "Dropbox-API-Path-Root Header" in Claris Connect?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Jay P I can't offer support for Claris Connect itself, so I recommend referring to the documentation or support resources for Claris Connect. If Claris Connect doesn't already offer the ability to set the "Dropbox-API-Path-Root" header (or arbitrary headers such that you can specify "Dropbox-API-Path-Root"), the developer of Claris Connect will need to update it to support that.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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!