We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
gilbertwulff
9 years agoExplorer | Level 3
Uploading to a shared folder through api
I'm working on integrating dropbox to my company's website and we want to add a feature in to allow the users to share their shared folders to us and using the dropbox api, we upload files to the sha...
Greg-DB
Dropbox Community Moderator
9 years agoYes, the Dropbox API does offer the ability to both share folders and upload into shared folders.
To share a folder with another account, you can use /2/sharing/share_folder to share the folder, and /2/sharing/add_folder_member to invite another account.
On the recipient account, you can list folders that you can add to the account using /2/sharing/list_mountable_folders[/continue] and then add them to your account using /2/sharing/mount_folder.
You can then upload to the folder using /2/files/upload.
We recommend using an official SDK, if one is available for your platform. They will have corresponding methods for the above endpoints.
Note that when you register the API app for this, you'll need to use the "full Dropbox" permission, not "app folder". Apps with the app folder permission can't access shared folders.
Wuyi
8 years agoNew member | Level 2
In a request to make folder shareable, i got
REQUEST
curl -X POST https://api.dropboxapi.com/2/sharing/share_folder \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{"path":"/pictures/hello","link_settings":{}}'
RESPONSE
{ "error_summary": "no_permission/", "error": { ".tag": "no_permission" }, "user_message": { "locale": "en", "text": "You don’t have permission to perform this action." } }
What exactly am doing wrong?
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!