Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
journeymigration
3 years agoHelpful | Level 5
How to update shared folder link access from edit to view
I've successfully created a backend service to update shared folder member access to view only; however, the the shared folder link is still set to Edit access. I thought using the https://api.dropbo...
- 3 years ago
Whether or not you need to revoke the edit link will depend on your use case; it's not required for creating a view link. To revoke a link you'd use /2/sharing/revoke_shared_link. Whether or not you do revoke the edit link, you can create the view link using /2/sharing/create_shared_link_with_settings.
journeymigration
3 years agoHelpful | Level 5
So in effect, would I remove the share link and then use the API to create a view link and that'd effectively do the same thing?
Greg-DB
Dropbox Community Moderator
3 years agoWhether or not you need to revoke the edit link will depend on your use case; it's not required for creating a view link. To revoke a link you'd use /2/sharing/revoke_shared_link. Whether or not you do revoke the edit link, you can create the view link using /2/sharing/create_shared_link_with_settings.
- journeymigration3 years agoHelpful | Level 5
Here's how I'm revoking and then creating the link in a Console application:
await client.Sharing.RevokeSharedLinkAsync(url); SharedLinkSettings settings = new SharedLinkSettings(access: RequestedLinkAccessLevel.Viewer.Instance); await client.Sharing.CreateSharedLinkWithSettingsAsync(sharedFolderPath,settings);This appears to work on my end, thank you.
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!