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 /groups/<id>/events
POST /groups/<id>/calendar/events
我尝试了不同的群组类型,其中包括启用安全性,启用邮件和统一群组,但我看到相同的错误消息,我们将不胜感激。
答案 0 :(得分:4)
仅限app授权流程不支持群组日历访问权限。
我们正在努力为这种情况返回更好的错误。
答案 1 :(得分:3)
我相信您会为安全组或已启用邮件的安全组收到此错误。这仅适用于Unified(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的请求应该有效。注意:创建基础组邮箱可能需要几秒钟(我们正在努力改进),因此在创建组后直接创建事件可能会失败。
希望这有帮助,