Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

phmacena's avatar
phmacena
New member | Level 2
4 years ago

How to create a folder without using the "path" parameter?

Hi! I'm trying to use the Dropbox API to create a folder within a shared folder. The problem is that I only have the "shared_folder_id", I don't have the "path". This is probably happening because the "path" parameter is different depending on the member that is accessing the shared folder.

And the path seems to be the only mandatory parameter to use.

 

 

Does anybody know if there is any other endpoint for me to use and create a folder within a shared folder using the "shared_folder_id"?

2 Replies

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

    phmacena wrote:

    Hi! I'm trying to use the Dropbox API to create a folder within a shared folder. The problem is that I only have the "shared_folder_id", I don't have the "path". ...

    Does anybody know if there is any other endpoint for me to use and create a folder within a shared folder using the "shared_folder_id"?


    Hi phmacena,

    😁 When you read some documentation, read it carefully and completely. 🙂 What means "path" here? Little below your screenshot is a short description, where you can see that the absolute path is NOT an only option. More detailed description what a path could be can be seen near beginning on the same page. There you can see different form of relative paths (or almost relative, but exactly fitting your case). 😉

    Hope this helps.

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

      phmacena Здравко is correct; while 'path' is required, it doesn't need to be an absolute path. For reference, in addition to the documentation that Здравко linked to, you can see the full allowed formats for the 'path' parameter under the 'CreateFolderArg' section in the /2/files/create_folder_v2 documentation. For instance, in particular it sounds like the "ns:123456/newfoldername" format may be useful for your use case.