Announcements
Can you spare 5 minutes to help us improve our online support experience? Get involved!

Parent folders/spaces

Helpful | Level 5

Hello everybody,

I am using your API. While setting up the connection to the API, the team environment is always choosen.

When using the method /2/files/search_v2, when I only set up the name which the file should contain without the path, all files from every "parent" folder is gotten. But when I use method 2/files/list_folder I don't see all "parent" folders, only the "subfolders" of the first folder (Tereza Tester) as you can see on the printscreen below.

After looking for a solution I found out, I need to turn the "parent" folders into spaces to have them returned by the 2/files/list_folder method, is that correct?

Also, when I use other methods like 2/files/download and set up the full path of the file, it is unable to get the file. I can only get the file which is in the first folder (Tereza Tester) and the path to the file can only start with the "subfolders". While with the method /2/files/search_v2, when I want to look for a file in a specified folder, the full path has to be set up otherwise it returns nothing (parent_folder/subfolder/file).

May you help me please?

Thank you in advance.

Tereza

dropbox_folders.png

1 Accepted solution

Accepted Solutions

Re: Parent folders/spaces

Dropboxer

From your screenshot, I see you're using a team with the "team space" configuration.

When listing or downloading files in an account with the team space configuration using /2/files/list_folder[/continue] or /2/files/download, the call will operate in the team member folder by default, and not in the team space.

If you want to access the team space, you'll need to set the "root" for those calls to be the team space. You can find more information on how this works and how to configure those API calls accordingly in the Namespace Guide.

Reply
Loading...
4 Replies

Re: Parent folders/spaces

Dropboxer

From your screenshot, I see you're using a team with the "team space" configuration.

When listing or downloading files in an account with the team space configuration using /2/files/list_folder[/continue] or /2/files/download, the call will operate in the team member folder by default, and not in the team space.

If you want to access the team space, you'll need to set the "root" for those calls to be the team space. You can find more information on how this works and how to configure those API calls accordingly in the Namespace Guide.

Reply
Loading...

Re: Parent folders/spaces

Helpful | Level 5

Thank you for your reply! It helped me a lot.

One more question, my collegue got DEV account to work with so he can set up the API calls. His environment looks like below. And when he makes the 2/files/list_folder call, all folders (team folders and everything else) are retrieved. Why does that happen? Thank you!

dropbox_environment.png

Reply
Loading...

Re: Parent folders/spaces

Dropboxer

In this screenshot, I see that your colleague is not using the "team space" configuration, so their team folders are mounted insider their member folder. That means that for them, they will be listed and accessible by default, without configuring the root for the API calls.

Reply
Loading...

Re: Parent folders/spaces

Helpful | Level 5

I see. Thank you very much for your help, I do appreciate it.

Kind regards

Tereza

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post