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

guymayor's avatar
guymayor
Explorer | Level 4
5 years ago

Get parent team folder from name space

Hey,

When I am using https://www.dropbox.com/developers/documentation/http/documentation#team_log-get_events-continue to get events I got the path without the team folder and the minimum shared parent folder namespace witch could be a inner folder inside the team folder.

from your API I understand that teams may have multiple team folders. so I need to know the parent team folder of the file.

is there a quick way to get a file's/ folder's team folder? 

Thanks. 

  • Greg-DB's avatar
    Greg-DB
    5 years ago

    Thanks for confirming! Unfortunately, no, I can't think of a more direct or faster way to query that information. 

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

    I'm not sure I understand your specific scenario here, but it sounds like you may want to use the /2/sharing/get_folder_metadata endpoint. You could supply the team or shared folder ID as the shared_folder_id, which would give you the 'parent_shared_folder_id' value. You could then call again with that ID to get the information for that parent folder.

    If that isn't what you're looking for, please share a sample so I can take a closer look for your use case, e.g., so I can see what particular event you're working from. Thanks!

    • guymayor's avatar
      guymayor
      Explorer | Level 4

      Thank's for the response.

       You have understood me right :)

      I have already thought about the solution you suggested but I wondered if there is a simpler, not recursive way to do that (Just get the parent team_folder_id form file_id or ns_id in one call)?

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

        Thanks for confirming! Unfortunately, no, I can't think of a more direct or faster way to query that information. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 10 hours ago
325 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!