问题
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.
回答1:
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,
}
来源:https://stackoverflow.com/questions/49578497/microsoft-graph-api-cancel-recurring-events