The solution posted does not work, this still sends a invite to the attendee
Create an Appointment without invitation-graph API
I'm working with the Microsoft Graph API to create events in an Outlook calendar. When I create an event for myself, no email is sent, but when creating an event for another user, they receive an email with options to accept or decline the event. Is there a way to disable these accept/decline options when creating an event for someone else? Additionally, is there another endpoint or method I should be using to create appointments without sending these notifications?
Microsoft Security Microsoft Graph
2 answers
Sort by: Most helpful
-
-
Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
2024-05-16T18:20:17.3333333+00:00 Hello @Riya Dhyani ,
To disable the accept/decline options for a calendar event via the Microsoft Graph API, you can set the responseRequested property of the event to false.
Make a POST request to the following endpoint, replacing {event_id} with the actual ID of the event you want to modify to create event disabling response.
In the request body, include the responseRequested property and set it false.
PATCH /me/events/{event_id}
{ "responseRequested": false }Send the request and the specified event will be created with disabling the accept/decline options for attendees.
Please refer to documentation. https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
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".