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/someone@somewhere.com/calendar/events') .post(event); }

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,296 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,570 questions
{count} votes