当我me/calendars/[calendar-id]/events使用以下有效负载执行 POST 时。它成功创建了事件,我收到了新事件的 ID:
{
"start": {
"timeZone": "America/Chicago",
"dateTime": "2022-12-23T15:00:00"
},
"end": {
"timeZone": "America/Chicago",
"dateTime": "2022-12-23T18:00:00"
},
"subject": "Please don't delete me!",
"body": {
"contentType": "text",
"content": "I'm just an event in the future, I wonder if I'll send a '@removed' notice?"
}
"isCancelled": false,
"type": "singleInstance"
}
Run Code Online (Sandbox Code Playgroud)
但在那之后不久,我的 webhook 收到了该事件的信息,表明它刚刚被删除:
{
"@odata.type": "#microsoft.graph.event"
"id": [that-event-id]
"@removed": {
"reason": "deleted"
}
}
Run Code Online (Sandbox Code Playgroud)
当我去查看我的 Outlook 日历时,该事件似乎仍然存在,如果我得到它,它isCancelled是错误的。
这只发生在一年多以前或两年后创建的事件中。