Cancel meeting series

Dipika Das 141 Reputation points
2023-01-10T04:42:53.117+00:00

Hi,

I want to implement the functionality to cancel a set of recurring meetings and single occurrence. I tried to achieve this by following below way, but the problem is it's actually updating the event by removing all the meetings except the main event. And for cancel the main event I've to call cancel api again. So, it will be two calls. This is not what I want exactly, I want to cancel so user can view these as cancel meeting. Can anyone tell me Is there any api to cancel all at once?

PATCH https://graph.microsoft.com/v1.0/users/{userPrincipalName}/events/{id}
Content-type: application/json

{
  "recurrence": null,
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,567 questions
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,831 Reputation points
    2023-01-10T07:39:45.407+00:00

    Hi @Dipika Das , you can get the instances by using the below API call. Here is the documentation for you reference.

    Get me/events/id/instances?startDateTime={start_datetime}&endDateTime={end_datetime}
    

    And please try using the id of the required instance and send Delete request. Hope this helps. Best Wishes.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful