Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm new using the API. I wonder what's the best way to revoke shared links. I want to only allow sharing within my organization.
My first idea is for each user to check every shared file and their properties.
Regards
To revoke a shared link, you can use the /2/sharing/revoke_shared_link:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-revoke_shared_link
Depending on your exact goal, you can also do other things like modify the policy on existing links, using /2/sharing/modify_shared_link_settings:
For example, for Business accounts, you can set the settings.requested_visibility to team_only, to restrict that link to members of the same team only.
To revoke a shared link, you can use the /2/sharing/revoke_shared_link:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-revoke_shared_link
Depending on your exact goal, you can also do other things like modify the policy on existing links, using /2/sharing/modify_shared_link_settings:
For example, for Business accounts, you can set the settings.requested_visibility to team_only, to restrict that link to members of the same team only.
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!