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

CD12's avatar
CD12
New member | Level 2
7 months ago

Create folder using Dropbox API gets created inside /home/username/

Hi Team,

 

I am trying to create folder using Dropbox API. I need the folders to get created inside /home/ but the folders are getting created inside /home/username/. I am trying to check any settings for dropbox cloud to change the home path where folders and files get created, but am not able to find the configuration. Can you please help me with this issue. Also let me know if this behaviour is normal for folders and files to get created in /home/username/.

 

Thanks,

CD12

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

    CD12 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, folders will not be created in the team space, for example.

     

    You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space. 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.

     

    Also, note that for teams with the updated team space, you should use /2/team/team_folder/create to create team folders in the team space. Refer to this post for more information.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi CD12,

    What's the result of a listing to your account with an empty path (path neither '/home' nor '/home/user', but just empty '')? What this result matches to? 🧐😉

    Hope this will give direction.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,885 PostsLatest Activity: 16 hours ago
326 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!