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's avatar
jared22
Explorer | Level 3
7 years ago

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("")