Creating online meeting does not generate Team meeting URL

Adrian Paz Alonso 0 Reputation points
2023-03-21T15:37:07.71+00:00

End point: https://graph.microsoft.com/v1.0/me/events

Body

{
    "subject": "Let's go for lunch",
    "body": {
        "contentType": "HTML",
        "content": "Does noon work for you?"
    },
    "start": {
        "dateTime": "2023-03-21T12:00:00",
        "timeZone": "Pacific Standard Time"
    },
    "end": {
        "dateTime": "2023-03-21T12:00:00",
        "timeZone": "Pacific Standard Time"
    },
    "location": {
        "displayName": "Harry's Bar"
    },
    "attendees": [
        {
            "emailAddress": {
                "address": "adrian.pazalonso@cgi.com",
                "name": "Adrian Paz Alonso"
            },
            "type": "required"
        }
    ],
    "allowNewTimeProposals": true,
    "isOnlineMeeting": true,
    "onlineMeetingProvider": "teamsForBusiness"
}

Response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('hive-ip%40outlook.com')/events/$entity",
    "@odata.etag": "W/\"nm7WO1rBIUax2FTOt73TYwAAAAAFMg==\"",
    "id": "AQMkADAwATM0MDAAMS01NmQzLWI1MGEtMDACLTAwCgBGAAADMOpK1qyMD02aEDu4qr7P_wcAnm7WO1rBIUax2FTOt73TYwAAAgENAAAAnm7WO1rBIUax2FTOt73TYwAAAjJMAAAA",
    "createdDateTime": "2023-03-21T15:16:04.8850385Z",
    "lastModifiedDateTime": "2023-03-21T15:16:05.3224619Z",
    "changeKey": "nm7WO1rBIUax2FTOt73TYwAAAAAFMg==",
    "categories": [],
    "transactionId": null,
    "originalStartTimeZone": "Pacific Standard Time",
    "originalEndTimeZone": "Pacific Standard Time",
    "iCalUId": "040000008200E00074C5B7101A82E00800000000CE1D050E085CD901000000000000000010000000FFBD989F310188428F6B8C157FCEE218",
    "reminderMinutesBeforeStart": 15,
    "isReminderOn": true,
    "hasAttachments": false,
    "subject": "Let's go for lunch",
    "bodyPreview": "Does noon work for you?",
    "importance": "normal",
    "sensitivity": "normal",
    "isAllDay": false,
    "isCancelled": false,
    "isOrganizer": true,
    "responseRequested": true,
    "seriesMasterId": null,
    "showAs": "busy",
    "type": "singleInstance",
    "webLink": "https://outlook.live.com/owa/?itemid=AQMkADAwATM0MDAAMS01NmQzLWI1MGEtMDACLTAwCgBGAAADMOpK1qyMD02aEDu4qr7P%2BwcAnm7WO1rBIUax2FTOt73TYwAAAgENAAAAnm7WO1rBIUax2FTOt73TYwAAAjJMAAAA&exvsurl=1&path=/calendar/item",
    "onlineMeetingUrl": null,
    "isOnlineMeeting": false,
    "onlineMeetingProvider": "unknown",
    "allowNewTimeProposals": true,
    "occurrenceId": null,
    "isDraft": false,
    "hideAttendees": false,
    "responseStatus": {
        "response": "organizer",
        "time": "0001-01-01T00:00:00Z"
    },
    "body": {
        "contentType": "html",
        "content": "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body>Does noon work for you?</body></html>"
    },
    "start": {
        "dateTime": "2023-03-21T12:00:00.0000000",
        "timeZone": "Pacific Standard Time"
    },
    "end": {
        "dateTime": "2023-03-21T12:00:00.0000000",
        "timeZone": "Pacific Standard Time"
    },
    "location": {
        "displayName": "Harry's Bar",
        "locationType": "default",
        "uniqueId": "Harry's Bar",
        "uniqueIdType": "private"
    },
    "locations": [
        {
            "displayName": "Harry's Bar",
            "locationType": "default",
            "uniqueId": "Harry's Bar",
            "uniqueIdType": "private"
        }
    ],
    "recurrence": null,
    "attendees": [
        {
            "type": "required",
            "status": {
                "response": "none",
                "time": "0001-01-01T00:00:00Z"
            },
            "emailAddress": {
                "name": "Adrian Paz Alonso",
                "address": "adrian.pazalonso@cgi.com"
            }
        }
    ],
    "organizer": {
        "emailAddress": {
            "name": "Hive Ip",
            "address": "hive-ip@outlook.com"
        }
    },
    "onlineMeeting": null
}

Emailimage

Question:

  • why no Teams meeting URL generated?

Are we missing any parameter or properties in the request body?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,847 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-03-21T16:17:50.06+00:00

    Hello Adrian Paz Alonso,

    Thanks for reaching out!

    As per the documentation, you can create and enable an event as an online meeting using Microsoft Graph API by adding "isOnlineMeeting": true in the request body to get teams meeting URL.

    Please refer to the below sample request:

    POST https://graph.microsoft.com/v1.0/me/calendars/AAMkAGViNDU9zAAAAAGtlAAA=/events
    Content-type: application/json
    
    {
      "subject": "Let's go for lunch",
      "body": {
        "contentType": "HTML",
        "content": "Does next month work for you?"
      },
      "start": {
          "dateTime": "2019-03-10T12:00:00",
          "timeZone": "Pacific Standard Time"
      },
      "end": {
          "dateTime": "2019-03-10T14:00:00",
          "timeZone": "Pacific Standard Time"
      },
      "location":{
          "displayName":"Harry's Bar"
      },
      "attendees": [
        {
          "emailAddress": {
            "address":"adelev@contoso.onmicrosoft.com",
            "name": "Adele Vance"
          },
          "type": "required"
        }
      ],
      "isOnlineMeeting": true,
      "onlineMeetingProvider": "teamsForBusiness"
    }
    

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.