Team api integration

Nidhin C 1 Reputation point
2021-05-07T11:20:03.987+00:00

I am integrating teams api to schedule meeting,

use this api
https://graph.microsoft.com/v1.0/me/onlineMeetings
request
{
"startDateTime":"2019-07-12T14:30:34.2444915-07:00",
"endDateTime":"2019-07-12T15:00:34.2464912-07:00",
"subject":"User Token Meeting",
"isBroadcast": true,
"broadcastSettings": {
"allowedAudience": "everyone",
"isRecordingEnabled": true,
"isAttendeeReportEnabled": true
}
}

Getting response

{
"error": {
"code": "MethodNotAllowed",
"message": "An error has occurred.",
"innerError": {
"date": "2021-05-07T10:24:58",
"request-id": "17e3655e-158d-44c2-bb92-3a6b2ff3951d",
"client-request-id": "17e3655e-158d-44c2-bb92-3a6b2ff3951d"
}
}
}

Please help me to solve this issue

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,295 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deva-MSFT 2,266 Reputation points Microsoft Employee
    2021-05-08T07:30:05.67+00:00

    Ok, i looked at the above. I tried with Graph Explorer and the same Graph API call the required payload in the documentation (attached below) and it works for me!!

    {
    "startDateTime": "2021-05-12T14:30:34.2444915-07:00",
    "endDateTime": "2021-07-12T15:00:34.2464912-07:00",
    "subject": "User Token Meeting - Testing"
    }


  2. Mamatha-MSFT 161 Reputation points
    2021-05-10T09:26:07.497+00:00

    Hi @Nidhin C - The "broadcastSettings" are in Graph API Beta version but your using version 1.0. Please go through this documentation.


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.