We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
deeptir94
3 months agoExplorer | Level 4
API to upload files to folders outside of user account folder
Hello, I need to upload files using API to a folder that is outside of my current user account (the user ID I’m logged in with). However, when using the API, the folder structure is being cr...
Здравко
Legendary | Level 20
Hi @deeptir94,
Your issue is related to the fact that API default access start from users home folder. While for individual users their home is their account root, for business user home folder (the your folder starting with "svc" as seems) is not account root (or at least not mandatory to be - in most cases these days, it is NOT). In business accounts, you need to set the account root explicitly to override the default home folder when you need (like in your case). This happens using HTTP header "Dropbox-API-Path-Root" set to appropriate namespace id (the root namespace id in your case, but you can set any other namespace id if you want that namespace to be your access root). Take a look here (and linked resources there) for additional details. Use appropriate method if you use some of the supported SDKs.
Hope this helps.
deeptir94
3 months agoExplorer | Level 4
Hello, thanks for your reply.
I am still not sure how to fetch the namespace id for my folder. The API calls return information regarding the default root folder.
- Здравко3 months agoLegendary | Level 20
In most cases, setting the account root namespace id is enough since in such a way you can access everything accessible to particular user. So maybe it's the best way for you too. If you want to select from other available namespaces, you can enumerate them using /2/team/namespaces/list/continue.
Hope this sheds a light.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!