Learn how to make the most out of the Dropbox Community here 💙!

Forum Discussion

jared22's avatar
jared22
Explorer | Level 3
7 years ago
Solved

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...
  • Greg-DB's avatar
    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("")

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 2 days ago
366 Following

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!