We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

journeymigration's avatar
journeymigration
Helpful | Level 5
2 years ago

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.dropboxapi.com/2/sharing/modify_shared_link_settings endpoint would do the trick passing in the following parameters:

 

{
"settings": {
"requested_visibility": "public",
"audience": "public",
"access": "viewer"
},
"remove_expiration": false
}
 
Folder still shows edit access however for the shared link
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The Dropbox API doesn't support changing the access level on an existing link like this, but it looks like the API isn't properly reporting that back in the /2/sharing/modify_shared_link_settings response. I've asked the team to fix that up.

     

    That being the case, if you need a view link instead of an edit link, you'll need to create a new view link instead.

    • journeymigration's avatar
      journeymigration
      Helpful | 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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the post. We'll look into this and get back to you.