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

DhruvalGolakiya's avatar
DhruvalGolakiya
Explorer | Level 3
2 years ago

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

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.

  • 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.

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

    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.