cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Calling /2/files/list_folder/continue without headers

Explorer | Level 4

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 1
Highlighted

Re: Calling /2/files/list_folder/continue without headers

Dropboxer
Dropboxer

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.

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?