We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!