azure - Microsoft graph - Update event request set the flag isOnlineMeeting from true to false then true unwantedly - Stack Over

I have an event that has isOnlineMeeting set to true, a PATCH request with the below content to update

I have an event that has isOnlineMeeting set to true, a PATCH request with the below content to update the event

{"Subject":"Test Online Event 2025 a","Body":{"ContentType":"html","Content":"test note note"},"reminderMinutesBeforeStart":60,"isOnlineMeeting":true,"onlineMeetingProvider":"teamsForBusiness","responseRequested":true}

submitted to API Endpoint - graph.microsoft/v1.0/users/[12345]/events/[67890], it would changed the flag isOnlineMeeting from "true" to "false". Basically, it disconnects the Event from the original OnlineMeeting ties to it. If I submit the same request again, it will set the isOnlineMeeting flag to "true" and add a new Online Meeting back. Next submit will be false then true. It seems like every other submits set to false an other will be true.

Any thought on why this pattern is happening? and how can I update the event subject and other settings without messing the assigned OnlineMeeting up?

Note: If I take the flag isOnlineMeeting out of the request, it would set isOnlineMeeting to false and stay as false on all submits.

I have an event that has isOnlineMeeting set to true, a PATCH request with the below content to update the event

{"Subject":"Test Online Event 2025 a","Body":{"ContentType":"html","Content":"test note note"},"reminderMinutesBeforeStart":60,"isOnlineMeeting":true,"onlineMeetingProvider":"teamsForBusiness","responseRequested":true}

submitted to API Endpoint - graph.microsoft/v1.0/users/[12345]/events/[67890], it would changed the flag isOnlineMeeting from "true" to "false". Basically, it disconnects the Event from the original OnlineMeeting ties to it. If I submit the same request again, it will set the isOnlineMeeting flag to "true" and add a new Online Meeting back. Next submit will be false then true. It seems like every other submits set to false an other will be true.

Any thought on why this pattern is happening? and how can I update the event subject and other settings without messing the assigned OnlineMeeting up?

Note: If I take the flag isOnlineMeeting out of the request, it would set isOnlineMeeting to false and stay as false on all submits.

Share Improve this question asked Mar 13 at 8:43 Ph0ngvuPh0ngvu 474 bronze badges 2
  • If you want to avoid toggling the isOnlineMeeting flag between true and false, the simplest approach is to exclude isOnlineMeeting from the request altogether if you're not updating the online meeting configuration. If you need to update the online meeting settings, ensure you're passing the correct parameters and avoid unintended changes to the isOnlineMeeting flag. – Rukmini Commented Mar 13 at 8:52
  • When I leave out the isOnlineMeeting from the flag, it still set it to false. Not sure why either. {"Subject":"Test Online Event 2025 a","Body":{"ContentType":"html","Content":"test note note"},"reminderMinutesBeforeStart":60,"responseRequested":true} – Ph0ngvu Commented Mar 13 at 14:12
Add a comment  | 

1 Answer 1

Reset to default 1

Note that: You need to pass only the values for properties to update. Refer this MsDoc

Initially I created an event with isOnlineMeeting as true:

POST https://graph.microsoft/v1.0/me/events

{
"subject": "Plan summer company picnic",
"body": {
"contentType": "HTML",
"content": "Let's kick-start this event planning!"
},
"start": {
"dateTime": "2025-03-30T11:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2025-03-30T12:00:00",
"timeZone": "Pacific Standard Time"
},
"attendees": [
{
"emailAddress": {
"address": "[email protected]",
"name": "usere"
},
"type": "Required"
},
{
"emailAddress": {
"address": "[email protected]",
"name": "user"
},
"type": "Required"
}
],
"location": {
"displayName": "Conf Room 3; Fourth Coffee; Home Office",
"locationType": "Default"
},
"locations": [
{
"displayName": "Conf Room 3"
},
{
"displayName": "Fourth Coffee",
"address": {
"street": "4567 Main St",
"city": "Redmond",
"state": "WA",
"countryOrRegion": "US",
"postalCode": "32008"
},
"coordinates": {
"latitude": 47.672,
"longitude": -102.103
}
},
{
"displayName": "Home Office"
}
],
"isOnlineMeeting": true,
"isOnlineMeeting": true,
"allowNewTimeProposals": true
}

Now get the event by passing the Event ID:

GET https://graph.microsoft/v1.0/me/events/EventID

Now to update the event make sure to pass only the values for properties to update in the request body:

PATCH https://graph.microsoft/v1.0/me/events/EventID

{
"subject": "Updated Summer Company Picnic Plan",
"body": {
"contentType": "html",
"content": "<html><body><p>Let's get the planning for the summer company picnic going!</p></body></html>"
},
"reminderMinutesBeforeStart": 30,
"isOnlineMeeting": true
}

The event successfully updated with isOnlineMeeting as true.

If the issue still persists, when updating the body of an event with an associated online meeting, first retrieve the event's Body property, modify the content as needed, and ensure that the meeting blob (which contains the online meeting details) is preserved.

Removing the meeting blob will unintentionally disable the online meeting functionality. This behavior is intentional and expected within Outlook.

Reference:

IsOnlineMeeting Becomes False When Updating Event via Microsoft Graph API - Microsoft Q&A by Yakun Huang-MSFT

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744713177a4589461.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信