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
}
Run Code Online (Sandbox Code Playgroud)
错误:
{
"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"
}
}
}
Run Code Online (Sandbox Code Playgroud)
我试过下面提到的两个帖子,
POST /groups/<id>/events
POST /groups/<id>/calendar/events
Run Code Online (Sandbox Code Playgroud)
我尝试了不同的组类型,包括安全性,已启用邮件和统一组,但我看到相同的错误消息,任何帮助将不胜感激.
POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members
Accept: application/json
Authorization: Bearer <access key>
Content:
{
"directoryObject": {
"id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005"
}
}
Run Code Online (Sandbox Code Playgroud)
回复:
{
error: {
code: "BadRequest"
message: "Write requests are only supported on contained entities"
innerError: {
request-id: "20167459-5495-4034-9e27-503c64340c1f"
date: "2015-11-27T14:25:20"
}-
}-
}
Run Code Online (Sandbox Code Playgroud)
我可以得到一个组的成员,但不能向它添加成员,任何建议将不胜感激。
office365 office365api office365-restapi microsoft-graph-api