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
saritafurtado
7 years agoExplorer | Level 3
409 reset error for list_folder/continue api from business endpoint
I'm trying to retrieve folder items of team member by following this link https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-get-all-the-files-and-folders-of-a-business-account/m-p/281388. ...
- 7 years ago
1) The list_folder 'limit' parameter is not a hard limit, per the documentation. It can technically return slightly more (or even less) than the limit. You should always check 'has_more' and call back to list_folder/continue if it's true.
2) You can use the 'Dropbox-API-Path-Root' header for each list_folder call, but is not required. If it is not supplied, the API will default to the "home" behavior. You can find more information in the Namespace Guide.
saritafurtado
Explorer | Level 3
Yes it is working now if I put 'Dropbox-API-Path-Root' in /list_folder api.
But while doing this I noticed two things.
1) the results fetched with the limit count is not same as limit.
Eg. /list_folder api with 'Dropbox-API-Select-User' and limit 5 gives me 5 entries and has_more true
But /list_folder api with 'Dropbox-API-Select-User', 'Dropbox-API-Path-Root' and limit 5 gives me 3 entries and has_more true.
If i use the cursor in the /list_folder/continue I get more entries. If there are more than 5 entries it should give 5 entries in first result right?
2) /list_folder api works without 'Dropbox-API-Path-Root'?
I was using 'Dropbox-API-Path-Root' to test whether the namespace ID passed in as the root is the correct root namespace for the user. And this namespace id can change if the user joins/leaves/changes teams.
So my question is can we use /list_folder api only with 'Dropbox-API-Path-Root'? Because to retrieve members folder items you need member_id.
Greg-DB
7 years agoDropbox Staff
1) The list_folder 'limit' parameter is not a hard limit, per the documentation. It can technically return slightly more (or even less) than the limit. You should always check 'has_more' and call back to list_folder/continue if it's true.
2) You can use the 'Dropbox-API-Path-Root' header for each list_folder call, but is not required. If it is not supplied, the API will default to the "home" behavior. You can find more information in the Namespace Guide.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!