cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Explorer | Level 3

Hi Experts,

We want to create a folder outside the User's Dropbox root folder using the Business Endpoint.

Here is an example, I want to create a folder say Sales outside the Sam Sam (which is the user's Dropbox) folder.2019-05-15 19_47_41-Microsoft Edge.png

Please suggest a way to achieve this.

Thanks,

Sam

1 Accepted Solution

Accepted Solutions

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Dropboxer

It looks like your team is using the "team space" configuration and you want to use the Dropbox API to operate inside that team space.

Dropbox API calls default to the member folder, but you can set them to work in the team space if you want. For information on how to do so, please refer to the Namespace Guide:

https://www.dropbox.com/developers/reference/namespace-guide

Note that you'll need to use a "full Dropbox" Dropbox API app (or "team member file access" Dropbox Business API app) to do so. Apps with the "app folder" permission can't access the team space.

View solution in original post

6 Replies 6

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Explorer | Level 3

Forgot to insert the photo.

Here is the photo.

2019-05-15 19_47_41-Microsoft Edge.png

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Dropboxer

It looks like your team is using the "team space" configuration and you want to use the Dropbox API to operate inside that team space.

Dropbox API calls default to the member folder, but you can set them to work in the team space if you want. For information on how to do so, please refer to the Namespace Guide:

https://www.dropbox.com/developers/reference/namespace-guide

Note that you'll need to use a "full Dropbox" Dropbox API app (or "team member file access" Dropbox Business API app) to do so. Apps with the "app folder" permission can't access the team space.

View solution in original post

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Explorer | Level 3

Hi Greg,

Thanks a lot it worked. You are awesome.

Is there a way, we can know whether the Team is using a "Team Space" configuration or not using the API? Because, for both the folder creation differs, right?

Also, still there would be people using the older configuration (i.e., not "Team Space")?

How can I test the not "Team Space" configuration? This is to make sure that I support those scenarios as well.

Look forward to your reply.

Thanks,

Sam

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Dropboxer

Yes, there are still teams not using the team space configuration. Dropbox doesn't offer a way to revert a team to not using the team space configuration though.

And yes, in order to know how to manage the folders, you can check what configuration a user's team is on by checking the 'root_info' returned by /2/users/get_current_account. A 'TeamRootInfo' (with a '.tag' of 'team') indicates the team uses the team space; a 'UserRootInfo' (with '.tag' of 'user') indicates they do not.

Likewise, on the Dropbox Business API, you can check using /2/team/features/get_values. The returned 'has_team_shared_dropbox' feature value will tell you if the team uses the team space configuration.

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Explorer | Level 3

Hi Greg,

Thanks a lot for the information.

In either of the case, whether the team is configured as "Team Space" or not, we can continue using create_folder_v2, correct? Even the same would work if it is an individual Dropbox, right?

Thanks,

Sam

Re: How to create a folder outside the App Folder or User's Dropbox through the Business Endpoint?

Dropboxer

No problem, I'm happy to help.

Yes, whether the account is an individual account, or on a team either using the team space or not, a full Dropbox app can use create_folder_v2 to create folders anywwhere in the account. (Likewise, a Dropbox Business API app with the team member file access permission can use create_folder_v2 to create folders regardless of whether or not the team is using the team space configuration.)

The only limitation is that create_folder_v2 can't be used to create the special "team folders" used by teams that aren't using the team space configuration. That would require the use of /2/team/team_folder/create. (Indeed, this complication is one of the things the migration to the team space configuration is meant to address.)

Polls
Are you starting new work habits this year?

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?