0
votes

I am trying to create Teams Meeting invite via graph API but unable to figure out how to send meeting participants via the body as their documentation is not clear. I was using the graph API /me/onlineMeetings as mentioned here with the following body. I am not sure if this is the correct way, All I know is meeting timings, participant email ids. Can someone help me here?

Post request body:

{
    "startDateTime":"2021-05-13T10:30:34.2444915-07:00",
    "endDateTime":"2021-05-13T10:35:34.2464912-07:00",
    "subject":"Testing Invite",
    "meetingParticipants": {
          "attendees": [{
                "mail": "test@outlook.com"
          }]
     }
}
2

2 Answers

0
votes

To specify presenters and/or attendants please use the below structure.
To find additional information , please refer to the onlineMeeting Properties, and click though to the sub-objects such as attendees.

AFAIK you can not use the API to add presenters / attendees later.

{
  "startDateTime": "{{startDateTime}}",
  "endDateTime": "{{endDateTime}}",
  "subject": "Meeting with {{Attendee_upn}} regarding {{$randomBs}}",
  "autoAdmittedUsers": "EveryoneInCompany",
  "participants": {
    "organizer": {
      "identity": {
        "user": {
          "upn": "jos@jvteams.xyz"
        }
      }
    },
    "attendees": [
      {
        "upn": "{{Attendee_upn}}",
        "identity": {
          "user": {
            "id": "{{Attendee_id}}"
          }
        }
      }
    ]
  }
}
0
votes

Yes, you can using graph API. You need to update your meeting. Please refer to this Update onlineMeeting

You need to update participants property to add/remove attendees.

NOTE You can only modify the attendees field. You cannot update organizer field of the participants property.