簡體   English   中英

創建組日歷事件失敗

[英]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 /groups/<id>/events
POST /groups/<id>/calendar/events

我嘗試了不同的組類型,包括安全性,已啟用郵件和統一組,但我看到相同的錯誤消息,任何幫助將不勝感激。

僅限應用程序的授權流程不支持組日歷訪問。

我們正在努力為這種情況返回一個更好的錯誤。

我相信您會為安全組或啟用郵件的安全組收到此錯誤。 這僅適用於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的請求應該有效。 注意:創建基礎組郵箱可能需要幾秒鍾(我們正在努力改進),因此在創建組后直接創建事件可能會失敗。

希望這可以幫助,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM