创建组日历事件失败
Create groups calendar events fails
POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events
Accept: application/json
Authorization: Bearer <Token>
Content-Type: application/json; charset=utf-8
{
"originalStartTimeZone": "UTC",
"originalEndTimeZone": "UTC",
"start": {
"dateTime": "2015-12-03T09:30:00-00:00",
"timeZone": "UTC"
},
"end": {
"dateTime": "2015-12-03T10:30:00-00:00",
"timeZone": "UTC"
},
"responseStatus": {
"response": "Accepted",
"time": "2015-12-01T18:34:00-08:00"
},
"reminderMinutesBeforeStart": 15,
"isReminderOn": true
}
错误:
{
"error": {
"code": "ErrorInternalServerError",
"message": "The SMTP address has no mailbox associated with it.",
"innerError": {
"request-id": "f62423b0-0ade-494d-8c8c-1b56db60b524",
"date": "2015-12-02T10:39:44"
}
}
}
下面提到的 post url 我都试过了,
POST /groups/<id>/events
POST /groups/<id>/calendar/events
我尝试过不同的群组类型,包括启用安全、启用邮件和统一群组,但我看到了相同的错误消息,如有任何帮助,我们将不胜感激。
我相信您会在安全组或启用邮件的安全组中遇到此错误。这仅适用于统一 (O365) 组。只有那些类型的组具有与其关联的内容。为确保您正确创建统一组,这里是典型请求的请求和负载:
POST https://graph.microsoft.com/v1.0/groups
{
"description":"Group 5bff4 is the best ever",
"displayName":"Unified group 5bff4",
"groupTypes":["Unified"],
"mailEnabled":true,
"mailNickname":"Group5bff4",
"securityEnabled":false
}
那么您对 ../groups//events 的请求应该有效。注意:基础组邮箱的创建可能需要几秒钟(我们正在努力改进),因此在组创建后直接创建事件可能会失败。
希望对您有所帮助,
仅限应用程序的授权流程不支持组日历访问。
我们正在努力为这种情况返回更好的错误。
POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events
Accept: application/json
Authorization: Bearer <Token>
Content-Type: application/json; charset=utf-8
{
"originalStartTimeZone": "UTC",
"originalEndTimeZone": "UTC",
"start": {
"dateTime": "2015-12-03T09:30:00-00:00",
"timeZone": "UTC"
},
"end": {
"dateTime": "2015-12-03T10:30:00-00:00",
"timeZone": "UTC"
},
"responseStatus": {
"response": "Accepted",
"time": "2015-12-01T18:34:00-08:00"
},
"reminderMinutesBeforeStart": 15,
"isReminderOn": true
}
错误:
{
"error": {
"code": "ErrorInternalServerError",
"message": "The SMTP address has no mailbox associated with it.",
"innerError": {
"request-id": "f62423b0-0ade-494d-8c8c-1b56db60b524",
"date": "2015-12-02T10:39:44"
}
}
}
下面提到的 post url 我都试过了,
POST /groups/<id>/events
POST /groups/<id>/calendar/events
我尝试过不同的群组类型,包括启用安全、启用邮件和统一群组,但我看到了相同的错误消息,如有任何帮助,我们将不胜感激。
我相信您会在安全组或启用邮件的安全组中遇到此错误。这仅适用于统一 (O365) 组。只有那些类型的组具有与其关联的内容。为确保您正确创建统一组,这里是典型请求的请求和负载:
POST https://graph.microsoft.com/v1.0/groups
{
"description":"Group 5bff4 is the best ever",
"displayName":"Unified group 5bff4",
"groupTypes":["Unified"],
"mailEnabled":true,
"mailNickname":"Group5bff4",
"securityEnabled":false
}
那么您对 ../groups//events 的请求应该有效。注意:基础组邮箱的创建可能需要几秒钟(我们正在努力改进),因此在组创建后直接创建事件可能会失败。
希望对您有所帮助,
仅限应用程序的授权流程不支持组日历访问。
我们正在努力为这种情况返回更好的错误。