cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Get parent team folder from name space

Explorer | Level 4

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. 

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Get parent team folder from name space

Dropboxer
Dropboxer

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

View solution in original post

3 Replies 3
Highlighted

Re: Get parent team folder from name space

Dropboxer
Dropboxer

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!

Highlighted

Re: Get parent team folder from name space

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)?

Highlighted

Re: Get parent team folder from name space

Dropboxer
Dropboxer

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

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?