是否可以使用图表 api 为整个团队创建日历事件

Is it possible to create a calendar event for a whole team using the graph api

我正在尝试使用图表 api 创建日历事件,其行为方式与使用 Microsoft Team 客户端在频道中手动创建事件的方式相同。换句话说,出现在聊天中并“属于”团队的事件。我希望事件表现得像 here.

到目前为止,我已经尝试使用以下端点但没有成功。在所有端点上,我都尝试将团队本身添加为事件的 recipient/participant,但没有结果。

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

感谢在此阶段提供的任何帮助。

O365 门户中的 Teams 将调用内部 Teams API 来完成您提到的事情,如您的屏幕截图所示。

它不调用 Microsoft Graph API。换句话说,MS Graph目前不提供在频道中安排在线会议的端点。

Create an event as an online meeting doesn't send meeting info into a channel. Neither does Create onlineMeeting.

有一个解决方法适合您:create a Online meeting and then post information about that to a channel

一个相关的article供大家参考。