
Announcements
We have a library of documents and a flow that uses "Create a sharing link" to generate a link scoped to the organization or anonymous, based on the value of a choice column in the library (visibility, choices: internal, public). At certain times, a document's visibility may change, sometimes temporarily. When this happens, the flow "stops sharing" the file, then generates a new link with the appropriate scope. The issue is that these links may be posted on web or SharePoint sites, so when the link changes, the old one breaks/disappears.
Ideally, I'd like a way to change the existing link's scope from "organization" to "anonymous". However, even manually editing the link in the gui doesn't give this option, so I'm reasonably certain there's no way around that. Then again, I know that the REST API and corresponding "Send HTTP request to SharePoint" action opens up a great deal of options and flexibility. So, anyone experienced with the REST API...is this possible? If so, and you could point me to the documentation on the appropriate API call, I would really appreciate it.