Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
benjaminkromer
5 years agoExplorer | Level 4
/team_folder/list gives has_more false altough the Team has a shared Folder with full permissions
Hey folks,
we just testing the Business Advanced Plan.
Wenn calling the https://api.dropboxapi.com/2/team/team_folder/list I get the "has_more" key with value false as response.
POSTing the cur...
- 5 years ago
Yes, you need to set the Dropbox-API-Path-Root header in order to root an API call in the team space (to access those other folders shown in your screenshot). The Team Files Guide goes over how to do this. That is, you can get the root_namespace_id value from /2/users/get_current_account and use that in the Dropbox-API-Path-Root header value.
benjaminkromer
5 years agoExplorer | Level 4
Thanks for your Answer.
When I call /files/list_folder The API response with the following error:
"Error in call to API function "files/list_folder": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team..."
But when I use the ID of my user which has Admin permissions or even the owners user with the Dropbox-API-Select-User. I can only see folders in my or his private workspace. Not folders in the teams workspace.
I just read the Team Files Guide, but I just don't get it. Do I need to use the Dropbox-API-Path-Root header?
To clearify I made a screenshot.
I can't really find a good explanation on how to r/w into Teamspaces via API with an App Bearer Token.
Maybe u can provide more detailed instructions for me.
Thanks in Advance
Greg-DB
Dropbox Community Moderator
5 years agoYes, you need to set the Dropbox-API-Path-Root header in order to root an API call in the team space (to access those other folders shown in your screenshot). The Team Files Guide goes over how to do this. That is, you can get the root_namespace_id value from /2/users/get_current_account and use that in the Dropbox-API-Path-Root header value.
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!