Adding event creates a meeting, not an event instance

Nick Adkinson 0 Reputation points
2023-03-17T14:21:50.4833333+00:00

I'm using the Microsoft Graph JavaScript Client Library to add events to other user's calendars but they are being added as meetings. How do I ensure they are added as events?

The payload looks like this:

const event = { location: { displayName: 'Office' }, subject: 'Test', body: { contentType: 'Text', content: 'Test' }, start: { dateTime: '2023-03-17T15:00:00', timeZone: 'GMT Standard Time' }, end: { dateTime: '2023-03-17T16:00:00', timeZone: 'GMT Standard Time' } };

And the call to the graph client:

async addCalendarEvent(event) { await this.client .api('/users/******@somewhere.com/calendar/events') .post(event); }

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Graph
{count} votes

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.