Forum Discussion
Using browser Developer tool to Inspecte the parameters sent when creating sharing links
I want to create/develop 2 SharePoint Rest API calls to share documents using :-
- 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 if i pass those parameters inside my code (.net code or Power Automate), 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?
Thanks in advance for any help