We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
rk90
6 years agoHelpful | Level 5
Getting 409 error when calling list_folder on empty folder
I have been consistently getting 409 errors on some empty team folders. I am using Dropbox-Select-API-Admin header and listing team folders recursively. I am using the path to list those folders, tha...
- 6 years ago
If you're signed in to the Dropbox web site as that user, for instance, you wouldn't see the "Product Management" team folder listed in the user's file listing on https://www.dropbox.com/home . You would see it listed on the team's admin console on https://www.dropbox.com/team/admin/team_folders/home though. You could then use the "Manage" button to add a group to it. Once a group is added, if the user is a member of that group, it would be mounted for that user and so listed on https://www.dropbox.com/home .
Likewise, via the API, you can add a group using the /2/sharing/add_folder_member endpoint, like this:
curl -X POST https://api.dropboxapi.com/2/sharing/add_folder_member \ --header "Authorization: Bearer <ACCESS TOKEN>" \ --header "Dropbox-API-Select-Admin: <ADMIN TEAM MEMBER ID>" \ --header "Content-Type: application/json" \ --data "{\"shared_folder_id\": \"<TEAM FOLDER ID>\",\"members\": [{\"member\": {\".tag\": \"dropbox_id\",\"dropbox_id\": \"<GROUP ID>\"}}]}"
rk90
Helpful | Level 5
Greg,
There is a team folder called 'Product Management', I make the following curl and get 409.
curl -X POST -H "Authorization: Bearer <access_token>" -H "Dropbox-API-Select-Admin: <team_member_id of a team admin>" --data '{"path": "/Product Management"}' https://api.dropbox.com/2/files/list_folder
Response:
{"error_summary": "path/not_found/.", "error": {".tag": "path", "path": {".tag": "not_found"}}}
I then make the same curl, but this time I use namespace_id as path and folder lists fine even though it's empty.
curl -X POST -H "Authorization: Bearer <access_token>" -H "Dropbox-API-Select-Admin: <team_member_id of a team admin>" --data '{"path": "ns:<namespace_id>"}' https://api.dropbox.com/2/files/list_folder
I have provided the response header of the failed request in my first post, it contains request-id which I believe you can use to check why the request failed.
Greg-DB
6 years agoDropbox Staff
Thanks! That's helpful. The "Product Management" team folder can't be found at the path "/Product Management" because that team folder is not mounted in that account (and so does not have a path).
It can still be accessed by namespace ID since it does exist and is owned by the team though.
- rk906 years agoHelpful | Level 5
I don't understand what you mean by not mounted. I logged in to Dropbox Team as a team admin and created team folder, the folder is not shared with anyone. How do I mount a folder then?
- Greg-DB6 years agoDropbox Staff
If you're signed in to the Dropbox web site as that user, for instance, you wouldn't see the "Product Management" team folder listed in the user's file listing on https://www.dropbox.com/home . You would see it listed on the team's admin console on https://www.dropbox.com/team/admin/team_folders/home though. You could then use the "Manage" button to add a group to it. Once a group is added, if the user is a member of that group, it would be mounted for that user and so listed on https://www.dropbox.com/home .
Likewise, via the API, you can add a group using the /2/sharing/add_folder_member endpoint, like this:
curl -X POST https://api.dropboxapi.com/2/sharing/add_folder_member \ --header "Authorization: Bearer <ACCESS TOKEN>" \ --header "Dropbox-API-Select-Admin: <ADMIN TEAM MEMBER ID>" \ --header "Content-Type: application/json" \ --data "{\"shared_folder_id\": \"<TEAM FOLDER ID>\",\"members\": [{\"member\": {\".tag\": \"dropbox_id\",\"dropbox_id\": \"<GROUP ID>\"}}]}"
- rk906 years agoHelpful | Level 5
Thanks for the explanation! However, if I am a team admin wouldn't that folder be mounted for me even if it is not shared with anyone?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 2 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!