Update Calendar Event without sending notifications to attendees

simoffoncodex07 6 Reputation points
2022-04-26T15:55:50.793+00:00

I am using graph api to update my existing calendar event but with every single update my users are getting emails for it; say if I am adding a new attendee then api should not send email notifications to all of the existing attendees.

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

1 answer

Sort by: Most helpful
  1. JanardhanaVedham-MSFT 3,566 Reputation points
    2022-04-27T12:13:22.207+00:00

    Hi @simoffoncodex07 ,

    I have verifed the above mentioned case of updating an exising calendar event using Graph API and Update Event API is working as expected as per my testing.

    Please note the below points:

    1. As documented here, if you want to update the meeting attendees then only include the attendees property in the request body. Please ensure to include both existing meeting attendees and new meeting attendees while updating the existing calender event as shown in the below example: 196944-image.png

    Example :

    A Sample request body of new event creation :

    POST https://graph.microsoft.com/v1.0/me/calendar/events  
    {  
        "subject": "Meeting Test",  
        "body": {  
            "contentType": "HTML",  
            "content": "This is Test Meeting"  
        },  
        "start": {  
            "dateTime": "2022-04-29T04:00:00",  
            "timeZone": "Pacific Standard Time"  
        },  
        "end": {  
            "dateTime": "2022-04-29T12:00:00",  
            "timeZone": "Pacific Standard Time"  
        },  
        "location": {  
            "displayName": "Harry's Bar"  
        },  
        "attendees": [  
            {  
                "emailAddress": {  
                    "address": "******@o365XXXX.onmicrosoft.com"  
                },  
                "type": "required"  
            },  
            {  
                "emailAddress": {  
                    "address": "******@o365XXXX.onmicrosoft.com"  
                },  
                "type": "required"  
            }  
        ]  
    }  
    

    **A Sample request body of update event ** :

    PATCH https://graph.microsoft.com/v1.0/me/calendar/events/{Meeting-ID}  
    {  
        "attendees": [  
            {  
                "emailAddress": {  
                    "address": "******@o365XXXX.onmicrosoft.com"  
                },  
                "type": "required"  
            },  
            {  
                "emailAddress": {  
                    "address": "******@o365XXXX.onmicrosoft.com"  
                },  
                "type": "required"  
            },  
            {  
                "emailAddress": {  
                    "address": "******@o365XXXX.onmicrosoft.com"  
                },  
                "type": "required"  
            }  
        ]  
    }  
    

    2.If you are updating any of the meeting properties such as subject, meeting body, importance,isOnlineMeeting ..etc then it will be considered as change to the existing meeting and all the meeting attendees will be notifed with the latest meeting update. This is the expected behaviour and working as designed.

    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.