英文:
Update single event from recursive event using microsoft graph api
问题
可以使用Microsoft Graph API更新递归事件中的单个事件吗?如果可以,请分享一个有用的链接。
我尝试在官方文档中找到相关信息,但未找到如何更改单个实例的时间。
英文:
Is it possible to update a single event from a recursive event using Microsoft Graph API? if it is possible to update, please share a useful link.
I tried finding it in the official documentation but couldnt find how to change time of a single instance.
答案1
得分: 1
获取递归事件的 ID(主系列事件 ID),并使用它来获取指定时间范围内的所有事件实例:
GET https://graph.microsoft.com/v1.0/me/events/{master_series_event_id}/instances?startDateTime=2023-04-17T09:00:00.0000000&endDateTime=2023-04-20T09:00:00.0000000
查找特定单个实例的事件 ID,并调用以下端点来更改时间:
PATCH https://graph.microsoft.com/v1.0/me/events/{instance_event_id}
{
"start": {
"dateTime": "2023-04-18T11:15:00.0000000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2023-04-18T11:45:00.0000000",
"timeZone": "UTC"
}
}
资源链接:
英文:
Take the id of recursive event (master series event id) and use it to get all event instances in specified time range
GET https://graph.microsoft.com/v1.0/me/events/{master_series_event_id}/instances?startDateTime=2023-04-17T09:00:00.0000000&endDateTime=2023-04-20T09:00:00.0000000
Find the event id of specific single instance and call the following endpoint to change the time
PATCH https://graph.microsoft.com/v1.0/me/events/{instance_event_id}
{
"start": {
"dateTime": "2023-04-18T11:15:00.0000000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2023-04-18T11:45:00.0000000",
"timeZone": "UTC"
}
}
Resources:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论