Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
rk90
7 years agoHelpful | Level 5
Calling /2/files/list_folder/continue without headers
There are several endpoints that have a corresponding `continue` endpoint that allow for pagination. My question is do the corresponding `continue` endpoints require the same headers and json body that was passed initially.
For example I call /2/files/list_folder with following headers and request body
Headers = {'Dropbox-API-Path-Root': '{".tag": "namespace_id", "namespace_id": "795884475"}'}
Data = {"path": "", "recursive": True}
I get the result and use the cursor to call /2/files/list_folder_continue. Now when calling /2/files/list_folder_continue, do I also need to pass the Headers and Data that was passed to /2/files/list_folder or I just pass the cursor in request body?
1 Reply
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
You should use the same headers, but the body is used for endpoint-specific parameters, which can vary by endpoint. The /2/files/list_folder and /2/files/list_folder/continue endpoints in particular do take different parameters. For /2/files/list_folder/continue, the body should only contain the expected "cursor" parameter as JSON.
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!