Is it possible to create a calendar event for a whole team using the graph api

Welcome to Programming Tutorial official website. Today - we are going to cover how to solve / find the solution of this error Is it possible to create a calendar event for a whole team using the graph api on this date .

I’m trying to create a calendar event using the graph api that behaves in the same manner that manually creating an event in a channel using the Microsoft Team client would. In other words an event that shows up in the chat and “belongs” to the team. I want the event to behave as seen here.

So far i’ve tried to use the following endpoints with no luck. On all endpoints i’ve tried adding the team itself as a recipient/participant of the event but it had no result.

POST /groups/{id}/events
POST /groups/{id}/calendar/events
POST /users/{id | userPrincipalName}/events

Any help is appreciated at this stage.

Answer

The Teams in O365 portal will call an internal Teams API to finish the things you mentioned as your screenshot shows.

It doesn’t call Microsoft Graph API. In another words, MS Graph doesn’t provide an endpoint which schedules an online meeting in a channel currently.

Create an event as an online meeting doesn’t send meeting info into a channel. Neither does Create onlineMeeting.

There is a workaround for you: create a Online meeting and then post information about that to a channel.

A related article for your reference.