admin管理员组文章数量:1391975
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
1 Answer
Reset to default 1Note 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
本文标签:
版权声明:本文标题:azure - Microsoft graph - Update event request set the flag isOnlineMeeting from true to false then true unwantedly - Stack Over 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744713176a2621247.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论