【问题标题】:Error on update event with Outlook rest api使用 Outlook rest api 更新事件时出错
【发布时间】:2018-05-14 15:20:26
【问题描述】:

我正在使用 Outlook REST API 来更新重复事件。 我有一个每周一重复的每周活动。如果我尝试编辑一次发送 PATCH 请求的时间(而不是整个日期),则会收到错误消息:

{
  "error": {
    "code": "ErrorPropertyValidationFailure",
    "message": "At least one property failed validation."
  }
}

这是我的请求正文:

{
"subject":"test",
"body":"<!-- converted from text -->\n<div class=\"PlainText\"> </div>",
"contentType":1,
"locationName":"",
"start":"2018-05-14T13:30:00.000Z",
"end":"2018-05-14T14:30:00.000Z",
"isAllDay":false,
"isPrivate":false,
"attendees":[
{
"name":"...",
"email":"..."
},
{
"name":"...",
"email":"..."
}
],
"reminderMinutes":[
"30"
],
"noReminder":false
}

对于另一个帐户,相同的请求正在运行。

任何想法为什么会发生这种情况?

【问题讨论】:

    标签: json microsoft-graph-api outlook-restapi


    【解决方案1】:

    您正在更新start,而不是end。很可能它失败了,因为你在end 之后告诉它start

    【讨论】:

    • 感谢您的回答,@Marc LaFleur!我已经用整个请求有效负载更新了帖子。当然,没有与会者的数据。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-07-13
    • 2019-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-26
    相关资源
    最近更新 更多