I want to create an event using the Microsoft Graph API, but I don't want it to send emails.

Julián José López Arellano 20 Reputation points
2025-02-11T20:34:50.3733333+00:00

I have a question: When creating an event, how can I prevent emails from being sent to the meeting attendees? I just want it to be scheduled without them receiving anything in their inboxes.

String url = String.format("https://graph.microsoft.com/v1.0/users/%s/calendar/events", event.getOrganizerEmail());


ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.POST, request, String.class);

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,088 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 10,015 Reputation points Microsoft Vendor
    2025-02-12T01:57:20.2566667+00:00

    Hello Julián José López Arellano,

    Thank you for reaching out to Microsoft Support!

    In response to your question, many users have asked similar questions, but unfortunately there is currently no way to prevent emails from being sent to attendees when an event is created, which is a default behavior when an event is created.

    You can also refer to the case of other users:

    https://learn.microsoft.com/en-us/answers/questions/2156003/when-creating-an-online-calendar-event-what-emails

    https://learn.microsoft.com/en-us/answers/questions/1657563/create-an-appointment-without-invitation-graph-api

    Graph API 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 any further 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.