Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
JimmyMcnulty
2 years agoNew member | Level 2
Creating an integration for both Regular and Business users
I created a Dropbox app that allows users to upload files into my app. All was well until I realized, that users with Dropbox for Business can't import files, because I needed different scopes for th...
- 2 years ago
Yes, that's correct. Using the 'pathRoot' property sets the "Dropbox-API-Path-Root" header; if you use the "root" mode like that and set it to the account's root_namespace_id that would set the call to operate in the root for the account (such as the team space, if any).
JimmyMcnulty
2 years agoNew member | Level 2
Thanks for the reply Greg.
I think I managed to have a small breakthrough after your explanation:
new Dropbox({
accessToken,
pathRoot: JSON.stringify({ ".tag": "root", root: "XXX" })
});
In this example, I'm assuming this will always work, as long as I pass
root_namespace_id from /2/users/get_current_account, is that correct?
Здравко
2 years agoLegendary | Level 20
JimmyMcnulty wrote:... I passroot_namespace_id from /2/users/get_current_account, is that correct?
In general yes, but better check if the root namespace is different that home namespace and use the above only when they are different. In such a way your code becomes universal - will work everywhere on any account. 😉
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!