SOLVED

How to obtain the ID of an online meeting and edit the title using Graph API?

Copper Contributor

Greetings, my final goal is for the bot to change the title of the online meeting it is installed in using the Graph API.
It's very simple, but I'm running into a problem.
The problem is as follows.
1. When /onlineMeetings/{meetingId} is called with the id (MeetingId) of the botframework's MeetingInfo, "Meeting Id is corrupted" is returned.
2. I found advice to obtain meeting details using joinWebUrl and then use the ID of that information. However, if you call the API using joinWebUrl, it returns "An error has occurred."

I referred to the following article from another user in a similar situation to mine: (https://graph.microsoft.com/v1.0/users/1c995ccb-a3a2-4c4d-80e1-8e770a2c724c/onlineMeetings?$filter=J... %20'https://teams.microsoft.com/l/meetup-join/19%3ameeting_NjAxYmZmOGYtNmY0My00MTk1LWI5YzQtMDczOTQzZjk5M... -843b-e4813a121475% 22%2c%22Oid%22%3a%22ae45eb1f-4ce6-4a4a-b5d3-1e517a11091d%22%7d')
What on earth is the problem?

5 Replies
We will check this and get back to you.
best response confirmed by LeeJinWoo (Copper Contributor)
Solution

Hi @LeeJinWoo,

you can try using these steps:

To obtain the ID of an online meeting:

  • Using the joinWebUrl: Call the following Graph API endpoint:

 

GET /communications/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{videoTeleconferenceId}'​

 

where {videoTeleconferenceId} is the videoTeleconferenceId property of the MeetingInfo object.

  • Using the meeting organizer's user ID: Call the following Graph API endpoint:

 

GET /users/{userId}/onlineMeetings​

 

where {userId} is the user ID of the meeting organizer.

To edit the title of an online meeting:

  1. Call the following Graph API endpoint:

 

PATCH /me/onlineMeetings/{meetingId}​

 

where {meetingId} is the ID of the online meeting.

  1. In the request body, include the subject property with the new title of the online meeting.

Example:

 

PATCH /me/onlineMeetings/19:email address removed for privacy reasons/
{
  "subject": "New meeting title"
}

 

 

You need the OnlineMeetings.ReadWrite permission to call the above Graph API endpoints.

Get onlineMeeting - Microsoft Graph v1.0 | Microsoft Learn

Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.


If the post was useful in other ways, please consider giving it Like.


Kindest regards,


Leon Pavesic
(LinkedIn)

@LeeJinWoo - We tried to get the meeting using https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-1.0&tabs=http#example-....

 

We used the id from above response to update the meeting subject and meeting subject is updated successfully. Could you please confirm if the answer provided @LeonPavesic solved your issue.

Hi @LeonPavesic, I confirmed your advice works.
When I used the organizer's ID, it started to look up.
Thank's for your help.

Hi @LeeJinWoo,

Thanks for your update.

Can you please confirm that my suggestion has worked for you?

Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.


If the post was useful in other ways, please consider giving it Like.


Kindest regards,


Leon Pavesic
(LinkedIn)

1 best response

Accepted Solutions
best response confirmed by LeeJinWoo (Copper Contributor)
Solution

Hi @LeeJinWoo,

you can try using these steps:

To obtain the ID of an online meeting:

  • Using the joinWebUrl: Call the following Graph API endpoint:

 

GET /communications/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{videoTeleconferenceId}'​

 

where {videoTeleconferenceId} is the videoTeleconferenceId property of the MeetingInfo object.

  • Using the meeting organizer's user ID: Call the following Graph API endpoint:

 

GET /users/{userId}/onlineMeetings​

 

where {userId} is the user ID of the meeting organizer.

To edit the title of an online meeting:

  1. Call the following Graph API endpoint:

 

PATCH /me/onlineMeetings/{meetingId}​

 

where {meetingId} is the ID of the online meeting.

  1. In the request body, include the subject property with the new title of the online meeting.

Example:

 

PATCH /me/onlineMeetings/19:email address removed for privacy reasons/
{
  "subject": "New meeting title"
}

 

 

You need the OnlineMeetings.ReadWrite permission to call the above Graph API endpoints.

Get onlineMeeting - Microsoft Graph v1.0 | Microsoft Learn

Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.


If the post was useful in other ways, please consider giving it Like.


Kindest regards,


Leon Pavesic
(LinkedIn)

View solution in original post