使用Microsoft Graph API更新递归事件中的单个事件。

huangapple go评论50阅读模式
英文:

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"
    }
}

资源链接:

List event instances

Update event

英文:

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:

List event instances

Update event

huangapple
  • 本文由 发表于 2023年4月17日 18:43:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76034299.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定