似乎 Office 365 REST API 中存在某种限制,阻止添加日期较旧的事件,但我无法确定具体的限制。例如,以下 JSON 负载会导致请求失败并返回 400 响应:
{
"Subject":"Task/Other",
"Location":{},
"Body": {
"ContentType":"Text",
"Content":"Appointment text"
},
"Start": {
"DateTime":"1983-05-12T19:00:00",
"TimeZone":"America/New_York"
},
"End": {
"DateTime":"1983-05-12T19:30:00",
"TimeZone":"America/New_York"
}
}
但是,以下有效负载成功:
{
"Subject":"Task/Other",
"Location":{},
"Body": {
"ContentType":"Text",
"Content":"Appointment text"
},
"Start": {
"DateTime":"2016-05-12T19:00:00",
"TimeZone":"America/New_York"
},
"End": {
"DateTime":"2016-05-12T19:30:00",
"TimeZone":"America/New_York"
}
}
唯一的区别是最近的事件日期。我无法在 API 文档中找到有关任何此类约束的任何内容。我错过了什么?