Forum Discussion

LeeJinWoo's avatar
LeeJinWoo
Copper Contributor
Oct 25, 2023

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

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=JoinWebUrl%20eq %20'https://teams.microsoft.com/l/meetup-join/19%3ameeting_NjAxYmZmOGYtNmY0My00MTk1LWI5YzQtMDczOTQzZjk5MzM3%40thread.v2/0?context=%7b%22Tid%22%3a%22a310da6f-4196-405d -843b-e4813a121475% 22%2c%22Oid%22%3a%22ae45eb1f-4ce6-4a4a-b5d3-1e517a11091d%22%7d')
What on earth is the problem?

  • 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)

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    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)

Resources