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
ch26
5 years agoHelpful | Level 7
webhooks to listen for changes in specific path rather than whole dropbox of user account
Hi Team
Is there possibility to listen for changes in only specific paths in dropbox through webhooks?
Thanks in Advance.
- 5 years ago
The result from "list_folder/continue" on call in webhook is same like in any other call in any other condition. There is JSON result example, also. In a real situation result will be changed entries - all files and/or folders. As a example - you can find can find current last cursor/iterator for you account using:
curl -X POST https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor --header "Authorization: Bearer <your token>" --header "Content-Type: application/json" --data "{\"path\": \"\",\"recursive\": true}"
Change something inside your account content and call following:
curl -X POST https://api.dropboxapi.com/2/files/list_folder/continue --header "Authorization: Bearer <your token>" --header "Content-Type: application/json" --data "{\"cursor\": \"<the cursor from previous call>\"}" | jq '.entries[] | {name, id, path_display}'
Result will point just made changes, if any (little bit filtered for improved readability). Without the filter, "cursor" could be used next time. This same result is the delta!
ch26
Helpful | Level 7
Hi
If iam not wrong the path in delta response entries is the path which has changed??
It will be very helpful if anyone posts sample json returned value from webhook notification using delta???
Thanks
Здравко
5 years agoLegendary | Level 20
The result from "list_folder/continue" on call in webhook is same like in any other call in any other condition. There is JSON result example, also. In a real situation result will be changed entries - all files and/or folders. As a example - you can find can find current last cursor/iterator for you account using:
curl -X POST https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor --header "Authorization: Bearer <your token>" --header "Content-Type: application/json" --data "{\"path\": \"\",\"recursive\": true}"
Change something inside your account content and call following:
curl -X POST https://api.dropboxapi.com/2/files/list_folder/continue --header "Authorization: Bearer <your token>" --header "Content-Type: application/json" --data "{\"cursor\": \"<the cursor from previous call>\"}" | jq '.entries[] | {name, id, path_display}'
Result will point just made changes, if any (little bit filtered for improved readability). Without the filter, "cursor" could be used next time. This same result is the delta!
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
Need more support
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!