Updating isOnlineMeeting in M365 event via MS Graph

Copper Contributor

What I'm doing is creating a calendar event in M365 via the EWS API. I want to set isOnlineMeeting and onlineMeetingProvider, but those properties are not writable in EWS. So my idea was to take the itemId of the new event, and use Microsoft Graph to update just those two properties. I had to alter the itemId a bit to get Graph to accept it (changed / to -) but it appears to "work" in the sense that the PATCH command comes back with response 200. But the properties do not get modified. Here is the json that I give to the PATCH command:

{
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"
}

Here is the URL (shortened for brevity):

PATCH /v1.0/users/me/calendars/AQMkAG.../events/AAMkAG...

As I said, the http response code is 200. The output from the PATCH is a listing of all of the event properties. The ones I am trying to modify are unchanged. The funny thing is, I could have sworn I had this working last week, but my tests this week all fail. Any ideas?

0 Replies