I am currently try to use the Microsoft Graph API to cancel a set of recurring meetings using the following call:
POST /users/{prinicipalName}/calendar/events/{id}/cancel
And I am getting back Unsupported segment type error.
I can delete events one at a time, but I need a way to cancel all events in a recurrence. Any help would be much appreciated.
There isn't a /cancel
endpoint.
If you want to remove recurrences from a meeting, you need to set the recurrence pattern to null
:
PATCH https://graph.microsoft.com/v1.0/users/{userPrincipalName}/events/{id}
Content-type: application/json
{
"recurrence": null,
}