创建没有重复结束日期的日历事件失败
Creating calendar event without recurrence end date fails
创建没有 Recurrence.Range.End 日期的日历事件失败并显示以下消息:
{
"error": {
"code": "ErrorRecurrenceEndDateTooBig",
"message": "Recurrence end date can not exceed Sep 1, 4500 00:00:00."
}
}
我尝试了将此日期设置为 UTC 零日期并完全删除参数的请求。此问题可能与
有关
请求示例:
1) 没有 Recurrence.Range.End:
{
"Subject": "test event",
"Body": {
"ContentType": "HTML",
"Content": "sadsad"
},
"Start": "2015-05-27T00:00:00.000Z",
"End": "2015-05-27T00:30:00.000Z",
"Attendees": [],
"Recurrence": {
"Pattern": {
"DayOfMonth": 0,
"Month": 0,
"Type": "Daily",
"Interval": 3,
"FirstDayOfWeek": "Sunday"
},
"Range": {
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}
}
}
2) Recurrence.Range.Start:
{
"Subject": "No title",
"Body": {
"ContentType": "HTML",
"Content": "sadsad"
},
"Start": "2015-05-27T03:30:00.000Z",
"End": "2015-05-27T04:00:00.000Z",
"Attendees": [],
"Recurrence": {
"Pattern": {
"DayOfMonth": 0,
"Month": 0,
"Type": "Daily",
"Interval": 3,
"FirstDayOfWeek": "Sunday"
},
"Range": {
//Actually this is the way this field comes when reading such
//events from the REST API, which is a bit strange:
"EndDate": "0001-01-01T00:00:00Z",
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}
}
}
任何人都可以检查我是否遗漏了什么或者这是一个问题(错误)?谢谢
您需要在 Range
中包含 StartDate
字段。
"Range": {
"StartDate": "2015-05-27T00:00:00Z",
"EndDate": "0001-01-01T00:00:00Z",
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}
创建没有 Recurrence.Range.End 日期的日历事件失败并显示以下消息:
{
"error": {
"code": "ErrorRecurrenceEndDateTooBig",
"message": "Recurrence end date can not exceed Sep 1, 4500 00:00:00."
}
}
我尝试了将此日期设置为 UTC 零日期并完全删除参数的请求。此问题可能与
请求示例:
1) 没有 Recurrence.Range.End:
{
"Subject": "test event",
"Body": {
"ContentType": "HTML",
"Content": "sadsad"
},
"Start": "2015-05-27T00:00:00.000Z",
"End": "2015-05-27T00:30:00.000Z",
"Attendees": [],
"Recurrence": {
"Pattern": {
"DayOfMonth": 0,
"Month": 0,
"Type": "Daily",
"Interval": 3,
"FirstDayOfWeek": "Sunday"
},
"Range": {
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}
}
}
2) Recurrence.Range.Start:
{
"Subject": "No title",
"Body": {
"ContentType": "HTML",
"Content": "sadsad"
},
"Start": "2015-05-27T03:30:00.000Z",
"End": "2015-05-27T04:00:00.000Z",
"Attendees": [],
"Recurrence": {
"Pattern": {
"DayOfMonth": 0,
"Month": 0,
"Type": "Daily",
"Interval": 3,
"FirstDayOfWeek": "Sunday"
},
"Range": {
//Actually this is the way this field comes when reading such
//events from the REST API, which is a bit strange:
"EndDate": "0001-01-01T00:00:00Z",
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}
}
}
任何人都可以检查我是否遗漏了什么或者这是一个问题(错误)?谢谢
您需要在 Range
中包含 StartDate
字段。
"Range": {
"StartDate": "2015-05-27T00:00:00Z",
"EndDate": "0001-01-01T00:00:00Z",
"NumberOfOccurrences": 0,
"Type": "NoEnd"
}