I am using the API (HTTP Request through PowerAutomate) to create a share link for a file that is being submitted via a Form.
This share link will be displaying a PDF and needs to have certain permissions, such as View by everyone + Block Download.
I can do this via the GUI fine, but when using the API I am unsuccessful in blocking the download.
I am using a POST to URI- _api/web/GetFileByUrl(@v)/ListItemAllFields/ShareLink?@v='@{outputs('Compose_2')}'
Outputs of Compose_2 is the Relative path of the file submitted via the form.
The body of the request is-
The request is hitting the API and I am getting a response. The link created is one that anyone can view, which is perfect, but I still cannot get "Block Download" to work. Everywhere I have read, says role 7 should block the download. Can anyone point me in the direction of some documentation that would help!
Thanks!