We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
m1lle
8 years agoExplorer | Level 4
API to set_password for shared folder?
Using create_shared_link_with_settings I am able to share a folder and set a password for it. But I don't seam to find any way to *change* this password? How do I do that through the API? Is it p...
- 8 years ago
To set a password, you need to set the 'requested_visibility' to 'password'. So, in your example, that would look like:
--data '{"url":"https://www.dropbox.com/sh/rjg3ms4tkca69XX/AABQP1tMaxHjUey4b8mQlg9XX?dl=0","settings":{"link_password":"zzz","requested_visibility":{".tag":"password"}}}'
Greg-DB
Dropbox Community Moderator
8 years agoTo set a password, you need to set the 'requested_visibility' to 'password'. So, in your example, that would look like:
--data '{"url":"https://www.dropbox.com/sh/rjg3ms4tkca69XX/AABQP1tMaxHjUey4b8mQlg9XX?dl=0","settings":{"link_password":"zzz","requested_visibility":{".tag":"password"}}}'
m1lle
8 years agoExplorer | Level 4
Ahhh, "optional", but not so optional. Thanks a thousand, Greg!
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!