We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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