Microsoft Graph API:取消重复事件
问题描述:
我目前正在尝试使用 Microsoft Graph API 通过以下调用取消一组定期会议:
I am currently try to use the Microsoft Graph API to cancel a set of recurring meetings using the following call:
POST /users/{principalName}/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.
答
没有 /cancel
端点.
如果您想从会议中删除重复,您需要将重复模式设置为null
:
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,
}