使用API操作佈建混合行事歷

混合行事歷使用Microsoft Graph API存取 Office 365 行事歷活動。 此 API 支援使用 Office 365 執行多種作業。 然而,「混合行事歷」僅使用與行事歷用例相關的指令子集。

表 1. 混合行事歷目前使用的操作

圖形作業

使用情況

POST /users/{id | userPrincipalName}/calendar/events

新增活動或會議至使用者的行事曆。

GET /users/{id | userPrincipalName}/events/{id}

擷取某個使用者行事曆中單個活動的相關詳細資料。

GET /users/{id | userPrincipalName}/calendar/events/{id}/instances? startDateTime={start_datetime}&endDateTime={end_datetime}

取得指定時間範圍內重複會議的發生次數。

GET /users/{id | userPrincipalName}/calendar/events

擷取使用者行事曆資料夾中的活動的相關詳細資料。

POST /subscriptions

訂閱使用者行事曆的變更通知。

GET /users/{id|userPrincipalName}/mailboxSettings

取得使用者的地區設定和「不在辦公室」狀態。

DELETE /subscriptions/{id}

取消訂閱使用者行事曆的變更通知。

PATCH /users/{id | userPrincipalName}/calendar/events/{id}

除了與會議相關的其它欄位之外,更新行事曆活動的內容(包括加入資訊及延伸內容)。

POST /users/{id|userPrincipalName}/calendar/getSchedule

顯示指定時間範圍內的使用者可用性及有空/忙碌狀態。

DELETE /users/{id | userPrincipalName}/calendar/events/{id}

從行事曆刪除活動。

POST /users/{id | userPrincipalName}/calendar/events/{id}/{accept | decline | tentativelyAccept}

允許使用者接受/拒絕/暫定接受會議的狀態。