Create an Appointment without invitation-graph API

Riya Dhyani 20 Reputation points

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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,875 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 315 Reputation points Microsoft Vendor

    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.

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

    0 comments No comments