MS Graph 创建在线会议:"onlinemeeting cannot be null."

MS Graph create onlineMeeting: "onlinemeeting cannot be null."

我目前正在尝试使用 Graph Explorer 创建在线会议,但遇到了与此问题类似的问题:onlinemeeting-cannot-be-null-error-when-creating-new-meeting-with-beta-api

每当我向 https://graph.microsoft.com/v1.0/me/onlineMeetings the answer is a 400 Bad Request error with message: onlinemeeting cannot be null. The body looks like the example from the official documentation 发送 Post 请求时:

{
  startDateTime:"2020-09-09T14:33:30.8546353-07:00",
  endDateTime:"2020-009-09T15:03:30.8566356-07:00",
  subject:"test"
}

无论如何,我无法让它工作。其他端点运行良好,API 权限符合要求。对此有什么想法吗?

participants应该在onlineMeeting资源中提供,participantsonlineMeeting对象中的属性之一,您还可以添加[=12的其他属性=].

所以你需要将它添加到你的请求正文中,here是一个示例供你参考:

{
  "startDateTime":"2019-09-09T14:33:30.8546353-07:00",
  "endDateTime":"2019-09-09T15:03:30.8566356-07:00",
  "subject":"Application Token Meeting",
  "participants": {
    "organizer": {
      "identity": {
        "user": {
          "id": "550fae72-d251-43ec-868c-373732c2704f"
        }
      }
    }
  }
}