Outlook 事件 RSVP 图 api 问题

Outlook event RSVP graph api issue

使用 Microsoft Graph 创建了一个事件:

{
  "subject": "TEST",
  "body": {
    "contentType": "HTML",
    "content": "test event respond"
  },
  "start": {
    "dateTime": "2019-05-22T00:00:00",
    "timeZone": "Asia/Kolkata"
  },
  "end": {
    "dateTime": "2019-05-22T00:00:00",
    "timeZone": "Asia/Kolkata"
  },
  "location": { "displayName": "Leena AI" },
  "attendees": [
    {
      "emailAddress": {
        "address": "sachin@live.com",
        "name": "Sachin Goel"
      },
      "type": "optional"
    }
  ],
  "isReminderOn": false,
  "reminderMinutesBeforeStart": 15
}

如果我尝试接受来自 sachin@live.com 用户的事件,它会抛出一个错误:

{
  "error": {
    "code": "ErrorItemNotFound",
    "message": "The specified object was not found in the store.",
    "innerError": {
      "request-id": "485528b0-dbbe-42f5-80c0-5fc91477fc31",
      "date": "2019-04-30T07:11:58"
    }
  }
}

样品请求:

https://graph.microsoft.com/v1.0/me/events/{eventId}/accept
{
  "comment" : "respond from api"
}

结果为 NotFoundError,但这适用于 UI。我尝试了不同的解决方案(更新权限、主日历)但没有任何效果

此流程在 API 级别是否有任何限制?

您在邮箱中创建的 Event 事件 ID 不会sachin@live.com 邮箱中的事件 ID 相同。

您需要找到带有 sachin@live.com 邮箱的邮件,然后接受 that id。