Hi Lenny,
Can you clarify if you are calling the Update Event API while trying to perform an Edit instead of Create Event API? Cause if you are calling the latter then it wont allow you to Create a new event over existing event, advise to call the Update Event.
Alternatively you can retain the existing event details within mendix and do a Delete Event call and then perform a Create event call, incase the user clicks on cancel, call the Create event call with the retained event data in mendix. Hope this helps.
Request Body for Update event,
PATCH https://graph.microsoft.com/v1.0/me/events/{id}
Content-type: application/json
Content-length: 285
{
"originalStartTimeZone": "originalStartTimeZone-value",
"originalEndTimeZone": "originalEndTimeZone-value",
"responseStatus": {
"response": "",
"time": "datetime-value"
},
"recurrence": null,
"iCalUId": "iCalUId-value",
"reminderMinutesBeforeStart": 99,
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness",
"isReminderOn": true,
"hideAttendees": false,
"categories": ["Red category"]
}
Thanks
Hi @Abhishek
This is the documentation (https://docs.microsoft.com/en-us/graph/api/event-update?view=graph-rest-1.0&tabs=http)
This is my PATCH request:(https://graph.microsoft.com/v1.0/me/events/{the event id}) with request body:
{{
"subject": "{1}", (= description)
"start": {{
"dateTime": "{2}",
"timeZone": "Central European Standard Time"
},
"end": {{
"dateTime": "{3}",
"timeZone": "Central European Standard Time"
},
"location":{{
"displayName":"{4}",
"locationEmailAddress":"{5}"
},
"showAs": "busy",
{6} (= attendees)
],
"allowNewTimeProposals": true
}
This is the same request body as the POST call to create an event just with different data since I want it to be updated.