Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi,
Im trying to create a public link from the API, the account where the folder is lodged is a Business account, when I try to share the folder I get "permission denied" error.
The main idea is that with a link anyone may download the contents of the folder (zip or single files). Also I would like to set an expiration date or time on the link.
I am able to create the link but only for private use or members of the team account.
Are you sure you have both the right path, as well as the right namespace (in the "Dropbox-Api-Path-Root" header)? I can't see the full values from your screenshot.
If you'd like us to check on this specifically for you, please feel free to open an API ticket with the full code (use the "Show Code" button), but please redact the access token.
It looks like there are a few different pieces of functionality here that you may be referring to, so first, to clarify:
Regardless of what sharing method you use, you will be subject to whatever access and sharing controls have been set for your team (such as the ones mentioned here).
Based on your description, try using /2/sharing/create_shared_link_with_settings. If that isn't working as expected, let us know.
Hi, thank you for the update. But I tried the /2/sharing/create_shared_link_with_settings endpoint and it only gives the error "path/not_found/" I tried with several files and folders. I know the paths are correct since I use the same paths for other API calls.
Maybe this is a bug on your end?
Are you sure you have both the right path, as well as the right namespace (in the "Dropbox-Api-Path-Root" header)? I can't see the full values from your screenshot.
If you'd like us to check on this specifically for you, please feel free to open an API ticket with the full code (use the "Show Code" button), but please redact the access token.
Hi Greg thanks for the reply. You were right in pointing out the Dropbox-Api-Path-Root, as it is only specified for 1 folder in the root of the team folders.
This was the error, i had to run my tests inside that folder. I added a screenshot in case someone runs into the same error.
thank you
Hi there!
If you need more help you can view your support options (expected response time for a 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!