How to create a new event on outlook with HTTP node

Hello everyone,
I’m building an n8n workflow and I’m having trouble creating a new event in Outlook. The Outlook node doesn’t include fields like location, attendees, etc., so I’m using an HTTP Request node instead.

Could someone explain what I’m supposed to enter in each field-especially the JSON Body? I’d really appreciate an example of how the JSON should look for creating an Outlook event.

You’re on the right track using the HTTP Request node! To create an Outlook event, you’ll need to craft a JSON body that aligns with the Microsoft Graph API.

Here’s an example of what the JSON body might look like:

```json

{

“subject”: “Team Meeting”,

“start”: {

"dateTime": "2024-04-20T14:00:00",

"timeZone": "UTC"

},

“end”: {

"dateTime": "2024-04-20T15:00:00",

"timeZone": "UTC"

},

“location”: {

"displayName": "Conference Room A"

},

“attendees”: [

{

  "type": "required",

  "emailAddress": {

    "address": "[email protected]",

    "name": "Attendee One"

  }

},

{

  "type": "required",

  "emailAddress": {

    "address": "[email protected]",

    "name": "Attendee Two"

  }

}

],

“body”: {

"contentType": "HTML",

"content": "<html><body>Discussion about the new project.</body></html>"

}

}

```

You’ll also need to set the HTTP Request node’s method to `POST` and the URL to something like `https://graph.microsoft.com/v1.0/me/events\`. Don’t forget to include the necessary authentication in your headers, such as an `Authorization` header with a bearer token.