@Expiscornovus Thanks a lot for the reply.
But inside this link https://learn.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-csomspt/4443c933-6fdb-452b-be9a-d881551de8a8 i did not find any documentation about the parameters we can send when using the ShareLink end point, those parameters include; LinkKind, Role , Password, etc ?
Second Question:- Also i have used the browser developer tool's network tab and i have inspected the parameters , such as :-
1) Using Anyone link


2) Using "People you choose"


but i am not sure if i can rely on this, and can i be sure that those parameters will not get changed in the future or their behavior will not get changed ? since those parameters are not documented any where..
For example, in my case, when i send this request using the "People you choose" and the UI will send these parameters:-

where i will get a sharing link with View permission + and email will be send to the emails inside "peoplPickerInput".. but inside my custom rest api >> i removed the "emailDate" parameter (since i do not want to send direct invitation email) >> and the sharing link was created correctly without sending an invitation email -which is exactly what i am looking for-, then i captured this sharing link and send it on a custom email.. so my concern is if I can guarantee this outcomes always and in the future?
Also currently sending "role:1" will give the sharing link View permission, could this be changed in the future by Microsoft, so for example sending "role:1" might give Edit permission beside View?
Third question. i found those documentations regarding some parameters:-
- https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.sharinglinkkind?view=sharepoint-csom
- https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.sharing.role?view=sharepoint-csom
but see the message where it says :-
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
so is Microsoft trying to say this info is not final and that it can be changed?
Thanks again for your help.