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
jared22
7 years agoExplorer | Level 3
Uploading to team folders seemingly unsupported
API : python We have a paid business account. There are folders that are at the root of our business account that are shared with everyone on our team. We would like to be able to upload files, u...
- 7 years ago
It sounds like your team is using the "team space" configuration. You can upload to the team root via the API. To do so, you'll need to use the namespace IDs to specify which area you want to access. I recommend reading the Namespace Guide, which covers this in detail:
https://www.dropbox.com/developers/reference/namespace-guide
In the Python SDK in particular, to specify a particular root, you should use `with_path_root`. For example:dbx.with_path_root(dropbox.common.PathRoot.root("XXXXXXXXX")).files_list_folder("")
or:
dbx.with_path_root(dropbox.common.PathRoot.namespace_id("XXXXXXXXX")).files_list_folder("")
Greg-DB
7 years agoDropbox Staff
It sounds like your team is using the "team space" configuration. You can upload to the team root via the API. To do so, you'll need to use the namespace IDs to specify which area you want to access. I recommend reading the Namespace Guide, which covers this in detail:
https://www.dropbox.com/developers/reference/namespace-guide
In the Python SDK in particular, to specify a particular root, you should use `with_path_root`. For example:
dbx.with_path_root(dropbox.common.PathRoot.root("XXXXXXXXX")).files_list_folder("")
or:
dbx.with_path_root(dropbox.common.PathRoot.namespace_id("XXXXXXXXX")).files_list_folder("")
- jared227 years agoExplorer | Level 3
That worked great.
I noticed that both 'dropbox.common.PathRoot' and 'with_path_root' are not mentioned in the python api documentation. To help aid anyone in the future with this same problem, it would be very helpful to add this to the documentation.
Thanks again for the help.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 10 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!