MS Graph create onlineMeeting:"onlinemeeting不能为null." [英] MS Graph create onlineMeeting: "onlinemeeting cannot be null."

查看:105
本文介绍了MS Graph create onlineMeeting:"onlinemeeting不能为null."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用Graph Explorer创建在线会议,并且面临类似此问题的类似问题:

I'm currently trying to create online meetings using the Graph Explorer and facing a similiar problem like in this question: onlinemeeting-cannot-be-null-error-when-creating-new-meeting-with-beta-api.

每当我向 https://graph.microsoft发送邮件请求时.com/v1.0/me/onlineMeetings 的答案是 400错误的请求,并显示以下消息: onlinemeeting不能为空.正文看起来像官方文档:

Whenever I'm sending a Post request to 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:

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

无论如何,我都无法正常工作.其他端点运行良好,并且API权限符合要求.有什么想法吗?

No matter what, I can't get this to work. Other endpoints work well and the API permissions fit the requirements. Any thoughts on this?

推荐答案

应该在 onlineMeeting 资源中提供参与者参与者 onlineMeeting 对象,还可以添加 onlineMeeting 的其他属性.

The participants should be provided in the onlineMeeting resource, participants is one of properties in onlineMeeting object, you can also add other properties of onlineMeeting.

因此,您需要将其添加到请求正文中,

So you need to add it to your request body, here is a sample for your reference:

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

这篇关于MS Graph create onlineMeeting:"onlinemeeting不能为null."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆