Microsoft Graph API: Cancel recurring events

北城余情 提交于 2020-06-28 02:57:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!