How to invite a user to a calendar event using Graph API

Max Strandberg 1 Reputation point
2021-04-28T08:51:46.487+00:00

I am trying to create a system where an administrator creates an event using said application and the following endpoint

POST /users/{id | userPrincipalName}/events

which works fine. The issue comes when users are to be invited to said event which is being done through the following endpoint

POST /users/{id | userPrincipalName}/events/{id}/forward

The request itself works fine but the end result is far from what's intended. The result of the forwarding requests can be seen here https://i.stack.imgur.com/iSTpt.png and the view when expanding the attached file can be seen here https://i.stack.imgur.com/NzH6O.png. There is no way for the recipient of the forwarded event to accept the calendar event. Have I misinterpreted the endpoint specification found here https://learn.microsoft.com/en-us/graph/api/event-forward?view=graph-rest-1.0&tabs=http , and if so, what should I do instead? I've previously attempted updating the event using PATCH to the following endpoint

PATCH /users/{id | userPrincipalName}/events/{id}

But it forces you to fetch and/or cache the attendant property as it overwrites on PATCH. Any help is once more appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,913 questions
{count} votes