创建 meetingRegistration
命名空间:microsoft.graph
重要
Microsoft Graph /beta
版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
代表组织者创建并启用 onlineMeeting 注册。 联机会议只能启用一个注册。
权限
为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考。
权限类型 | 最低特权权限 | 更高特权权限 |
---|---|---|
委派(工作或学校帐户) | OnlineMeetings.ReadWrite | 不可用。 |
委派(个人 Microsoft 帐户) | 不支持。 | 不支持。 |
应用程序 | 不支持。 | 不支持。 |
HTTP 请求
POST /me/onlineMeetings/{id}/registration
请求标头
名称 | 说明 |
---|---|
Authorization | 持有者 {token}。 必填。 详细了解 身份验证和授权。 |
Accept-Language | 语言。 可选。 |
请求正文
在请求正文中,提供 meetingRegistration 对象的 JSON 表示形式。
重要
必须提供 @odata.type 属性才能指定注册类型。 有关详细信息,请参阅 以下示例。
响应
如果成功,此方法在 201 Created
响应正文中返回响应代码和 meetingRegistration 对象。
注意
- 在此方法的响应正文中不返回 registrationPageViewCount 属性。 使用 Get meetingRegistration 方法检索该属性。
- customQuestions 是一个相关资源,只能在行中创建,但不能在此方法中返回。 使用 Get meetingRegistration 或 Get meetingRegistrationQuestion 方法检索它。
示例
请求
POST https://graph.microsoft.com/beta/me/onlineMeetings/MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZ/registration
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.meetingRegistration",
"subject":"Microsoft Ignite",
"description": "Join us November 2–4, 2021 to explore the latest tools, training sessions, technical expertise, networking opportunities, and more.",
"startDateTime":"2021-11-02T08:00:00-08:00",
"endDateTime":"2021-11-04T04:00:00-08:00",
"allowedRegistrant": "everyone",
"speakers": [
{
"displayName": "Henry Ross",
"bio": "Chairman and Chief Executive Officer"
},
{
"displayName": "Hailey Clark",
"bio": "EVP"
}
],
"customQuestions": [
{
"displayName": "Are you a developer?",
"answerInputType": "radioButton",
"answerOptions": [ "Yes", "No" ],
"isRequired": true
},
{
"displayName": "Where did you hear about us?",
"answerInputType": "text",
"isRequired": false
}
]
}
响应
注意:为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users('16664f75-11dc-4870-bec6-38c1aaa81431')/onlineMeetings('MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZ')/registration/$entity",
"@odata.type": "#microsoft.graph.meetingRegistration",
"id": "gWWckDBR6UOI8_yzWCzeNw,6pAAiSU1bkGqzLnbHG_muA,bzLh6uR-5EGYsCvtvIvs6Q,2Hui7cZ3e0m1BblvyhKFaw,Bcn5itxWh0ui5zRxG26Akw,XCvoVSOmK0e9fivLeKuR_w",
"registrationPageWebUrl": "https://teams.microsoft.com/registration/gWWckDBR6UOI8_yzWCzeNw,6pABiSU1bkGqzLnbHG_muA,bzLh6uR-5EGYsCvtvIvs6Q,luiTigKrcUGE6Cm33MyQgA,29OIGSH4skyQNu6mNxJr3w,m2bnpmqE_EqwV1Q8dr280E?mode=read&tenantId=eefc0b3a-a334-4fb7-ac60-2f1cf13ec00d",
"allowedRegistrant": "everyone",
"subject": "Microsoft Ignite",
"description": "Join us November 2–4, 2021 to explore the latest tools, training sessions, technical expertise, networking opportunities, and more.",
"startDateTime": "2021-11-02T016:00:00Z",
"endDateTime": "2021-11-04T12:00:00Z",
"registrationPageViewCount": null,
"speakers": [
{
"displayName": "Henry Ross",
"bio": "Chairman and Chief Executive Officer"
},
{
"displayName": "Hailey Clark",
"bio": "EVP"
}
]
}