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

L3monxx's avatar
L3monxx
Explorer | Level 3
3 years ago

Get full path

Hello,

I get  shared folders for API 

 

{ "name": "SOLAR", "namespace_id": "1413620231",  "namespace_type": {".tag": "shared_folder" } } 

and i need full path to folder  (user@domain.com/folder/folder1/SOLAR)

Can you get this path from the API by knowing the namespace_id?

Thanks for help

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    It looks like you have the output of /2/team/namespaces/list[/continue]. This will give you the namespace ID of shared folders, etc., for the team, but the path can vary for each member of the shared folder. To get the path for any given member, you'd need to look up the shared folder using their account.

     

    For instance, you can do so using /2/sharing/get_folder_metadata using the namespace_id as the shared_folder_id. If your app/access token is connected to the team itself, you'd need to use the "member file access" feature to operate on a specific team member.

     

    You may also want to check out the File Access Guide and Team Files Guide for more reference.

    • L3monxx's avatar
      L3monxx
      Explorer | Level 3

      Thanks for reply

      I get path but not for all ns

       

      Example:

       

       

      {
        "access_type": {
          ".tag": "owner"
        },
        "is_inside_team_folder": false,
        "is_team_folder": false,
        "owner_team": {
          "id": "",
          "name": "Company"
        },
        "name": "LEGAL",
        "policy": {
          "member_policy": {
            ".tag": "anyone"
          },
          "resolved_member_policy": {
            ".tag": "anyone"
          },
          "acl_update_policy": {
            ".tag": "editors"
          },
          "shared_link_policy": {
            ".tag": "anyone"
          },
          "viewer_info_policy": {
            ".tag": "enabled"
          }
        },
        "preview_url": "",
        "shared_folder_id": "ID",
        "time_invited": "2022-02-10T12:29:24Z",
        "access_inheritance": {
          ".tag": "inherit"
        }
      }
      {
        "access_type": {
          ".tag": "owner"
        },
        "is_inside_team_folder": false,
        "is_team_folder": false,
        "owner_team": {
          "id": "",
          "name": "Company"
        },
        "path_lower": "/poczta_kurierzy",
        "parent_folder_name": "",
        "name": "POCZTA_KURIERZY",
        "policy": {
          "member_policy": {
            ".tag": "anyone"
          },
          "resolved_member_policy": {
            ".tag": "anyone"
          },
          "acl_update_policy": {
            ".tag": "editors"
          },
          "shared_link_policy": {
            ".tag": "anyone"
          },
          "viewer_info_policy": {
            ".tag": "enabled"
          }
        },
        "preview_url": "",
        "shared_folder_id": "ID",
        "time_invited": "2021-12-17T14:37:39Z",
        "access_inheritance": {
          ".tag": "inherit"
        }
      }

       

       

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        If the path is not present, that means that it is not mounted for that user, per the documentation:

        path_lower String? The lower-cased full path of this shared folder. Absent for unmounted folders. This field is optional.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,895 PostsLatest Activity: 3 hours ago
328 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!