cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

So I want to create new folder via api inside team folder which is already created in dropbox.

So I want to create new folder via api inside team folder which is already created in dropbox.

DhruvalGolakiya
Explorer | Level 3
Go to solution

So I have team folder  'https://www.dropbox.com/home/Shared%20Folder/Team%20Folder' something like this  Shared Folder -> Team Folder both folder is Team Folder and Now I want to create another team folder inside Team Folder any idea how to do it as I'm new to dropbox api if I'm right I can't do it using User API right have to use Business api.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

To create a folder, you would use the /2/files/create_folder_v2 endpoint (or corresponding method in an SDK). That's a user-endpoint, not a team endpoint.

 

Note that by default, API calls to the Dropbox API operate in the "member folder" of the connected account, not the "team space". That means that by default, you can create folders in the team space. You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space, such as to create folders inside a shared/team folder in the team space using /2/files/create_folder_v2. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on how to use this in the Team Files Guide.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

To create a folder, you would use the /2/files/create_folder_v2 endpoint (or corresponding method in an SDK). That's a user-endpoint, not a team endpoint.

 

Note that by default, API calls to the Dropbox API operate in the "member folder" of the connected account, not the "team space". That means that by default, you can create folders in the team space. You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space, such as to create folders inside a shared/team folder in the team space using /2/files/create_folder_v2. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on how to use this in the Team Files Guide.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?