Search code examples
sharepointsharepoint-onlinepower-automatesharepoint-rest-api

official documentation about the SharePoint REST API end point for creating sharing links


Inside any SharePoint Online sites, we have the following four sharing options: -

User's image

Now I am building a custom REST API (one using Power Automate, the other using .NET Core)>> which should generate the above four sharing options using SharePoint REST API. So, from where I can find a full documentation from Microsoft about the related rest service api endpoint and the available options? mainly I want the following scenarios: -

  • Create/Generate "Anyone" link with password + View permission
  • Create/Generate "People you choose" + View permission + specifying the list of emails (internal & external) + Without sending direct invitation email (only generating the link).

can anyone advice on this please? from where I can find the related documentations from Microsoft which details how to implement the above scenarios using SharePoint REST API ?


Solution

  • did you try to create a shareable link with Graph API? https://learn.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http

    Yes, it's not SharePoint REST API as indicated in your question, but this API is well documented by Microsoft, and probably more future-proof.