I want to create 2 "Send http request to SharePoint" action inside our scheduled flow to share documents using those 2 methods:-
- Anyone link with Read-Only permission + Password
- "People you choose" link with Read-Only permission
Now I did not find any official documentations from Microsoft regarding the parameters we can send using the ShareLink api endpoint.... So I went to SharePoint online UI and i inspected the parameters sent using the browser developer tool, as follow:-
- For the Anyone link with Read-Only permission + Password, i found that the following parameters will be sent:-
- For the "People you choose" link with Read-Only permission, I found the following parameters will be sent:-
Now since I did not find any official documentations about those parameters, so my question is, if I pass those parameters inside my "Send http request to SharePoint" body sectin, will I always get the same result (now and in the future)? or for example, I might send the above parameters in the future and cause the sharing link to allow editing the document instead of Read-only? or those parameters should not be changed in the future by Microsoft? for example, currently "role:1" mean that the user will have Read-Only permission on the document been shared, so could the behavior of this parameter get changed in the future? so "role:1" grant the user edit instead of read-only?
Second question, in general why the ShareLink api end point does not have any official documentation mainly about the parameters options we have?
Regards
- For the "People you choose" link with Read-Only permission, I found the following parameters will be sent:-
- For the Anyone link with Read-Only permission + Password, i found that the following parameters will be sent:-