Create an Appointment without invitation-graph API

Riya Dhyani 35 Reputation points
2024-04-18T10:51:20.3033333+00:00

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ben Taylor 5 Reputation points
    2024-12-18T15:37:34.9733333+00:00

    The solution posted does not work, this still sends a invite to the attendee

    1 person found this answer helpful.
    0 comments No comments

  2. 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

    User's image

    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".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.