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
avivtzo
5 years agoExplorer | Level 4
Getting 409 error when calling list_folder/continue on renamed folder
Hi guys, I'm using your API in order to fetch the folders. I'm accessing the endpoint "/2/files/list_folder" for the first request and then using cursor I send the rest of the requests through "/2/f...
- 5 years ago
That's correct, when listing a folder based on the folder's path, if the path changes the folder will no longer be found.
Здравко's recommendation of using the folder's 'id' instead of the path is a good one. That is, when calling /2/files/list_folder, supply the folder's id (which starts with "id:") as the 'path' parameter. The id doesn't change when the folder is moved/renamed. (You may get a 'reset' error from /2/files/list_folder/continue in that case, but you can then easily start from /2/files/list_folder again with the same id.)
Alternatively, you could use /2/files/list_folder[/continue] for the folder's parent folder, whatever that may be, to keep track of changes to that parent folder's contents. (Note: the "path" value for the root folder itself is the empty string: "")
And yes, webhooks would only tell you when something changed, not what changed, so you would still need to use one of the above methods.
Greg-DB
Dropbox Staff
That's correct, when listing a folder based on the folder's path, if the path changes the folder will no longer be found.
Здравко's recommendation of using the folder's 'id' instead of the path is a good one. That is, when calling /2/files/list_folder, supply the folder's id (which starts with "id:") as the 'path' parameter. The id doesn't change when the folder is moved/renamed. (You may get a 'reset' error from /2/files/list_folder/continue in that case, but you can then easily start from /2/files/list_folder again with the same id.)
Alternatively, you could use /2/files/list_folder[/continue] for the folder's parent folder, whatever that may be, to keep track of changes to that parent folder's contents. (Note: the "path" value for the root folder itself is the empty string: "")
And yes, webhooks would only tell you when something changed, not what changed, so you would still need to use one of the above methods.
avivtzo
5 years agoExplorer | Level 4
Thanks everyone, using ID as the path is definitely a better idea.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 8 hours 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!