An API that connects multiple Microsoft services, enabling data access and automation across platforms
Fix:- Weekly recurrent need to remove the start and end object.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I'm trying to understand the MS graph API, but I have been stuck with creating recurrent events in the calendar.
My MS calendar does have one recurrent task already, but again I'm trying to create one more via API request.
share in the JSON request body here.
{
"subject": "Appoinment",
"start": {
"dateTime": "2023-10-13T17:00:00+05:30",
"timeZone": "Asia/Kolkata"
},
"end": {
"dateTime": "2023-10-14T18:00:00+05:30",
"timeZone": "Asia/Kolkata"
},
"recurrence": {
"pattern": {
"type": "weekly",
"interval": 1,
"month": 0,
"dayOfMonth": 0,
"daysOfWeek": [
"friday",
"saturday"
],
"firstDayOfWeek": null,
"index": "first"
},
"range": {
"type": "endDate",
"startDate": "2023-10-13",
"endDate": "2023-10-14",
"recurrenceTimeZone": "Asia/Kolkata",
"numberOfOccurrences": 0
}
}
}
But getting error
https://graph.microsoft.com/v1.0/users/******@succevo.com/calendar/events` resulted in a `400 Bad Request` response: {"error":{"code":"ErrorOccurrenceTimeSpanTooBig","message":"One occurrence of the recurring calendar item overlaps with another occurrence of the same calendar item."}}
Would like to know what I'm doing wrong here?
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Fix:- Weekly recurrent need to remove the start and end object.