Adding event creates a meeting, not an event instance

Nick Adkinson 0 Reputation points

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/') .post(event); }

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