Hoe to share a document link for external user using one drive API

Pradyut Sinha 21 Reputation points
2023-01-30T17:58:08.58+00:00

I am using Onedrive api for sharle a document link to extenal user in c# it is not working

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,087 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,371 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,701 Reputation points Microsoft Vendor
    2023-02-03T05:57:55.4+00:00

    Hello @Pradyut Sinha ,

    Refer Documentation: Send a sharing invitation, can be used to send sharing link to an external user.

    POST /drives/{drive-id}/items/{item-id}/invite

    Hope this helps. If the answer is helpful, please click Accept Answer and kindly upvote it. If you have extra questions about this answer, please click Comment.

    0 comments No comments