URL: https://graph.microsoft.com/v1.0/me/events
Method: POST
Headers: Authorization: Bearer token
Content-Type: application/json
Prefer: outlook.timezone="UTC"
request:
{
"allowNewTimeProposals": true,
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness",
"subject": "Let's go for lunch",
"body": {
"contentType": "HTML",
"content": "Does noon work for you?"
},
"start": {
"dateTime": "2023-03-10T07:38:40.055Z",
"timeZone": "UTC"
},
"end": {
"dateTime": "2023-03-10T08:38:40.055Z",
"timeZone": "UTC"
}
}
Response:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('outlook_55862XXXX31CC5D%40outlook.com')/events/$entity",
"@odata.etag": "W/\"SC5hEOO8d06oTPTXYQ3KgQACJZk8HA==\"",
"id": "AQMkADAwATM0MXXXXXXXXXXXXXXXLTAwCgBGAAADaGMZWeCJk0Gv_gf9yfLRNAcASC5hEOO8d06oTPTXYQ3KgQAAAgENAAAASC5hEOO8d06oTPTXYQ3KgQACJZxMRwAAAA==",
"createdDateTime": "2023-03-09T08:00:45.7837283Z",
"lastModifiedDateTime": "2023-03-09T08:00:45.8461717Z",
"changeKey": "SC5hEOO8dXXXXXX3KgQACJZk8HA==",
"categories": [],
"transactionId": null,
"originalStartTimeZone": "UTC",
"originalEndTimeZone": "UTC",
"iCalUId": "040000008200E00074C5B710XXXXXXXXXXXXXXXXXXXXXXXX00001000000012712DDC461B124E9BB1E8C63B1F7CEC",
"reminderMinutesBeforeStart": 15,
"isReminderOn": true,
"hasAttachments": false,
"subject": "Let's go for lunch",
"bodyPreview": "Does noon work for you?",
"importance": "normal",
"sensitivity": "normal",
"isAllDay": false,
"isCancelled": false,
"isOrganizer": true,
"responseRequested": true,
"seriesMasterId": null,
"showAs": "busy",
"type": "singleInstance",
"webLink": "https://outlook.live.com/owa/?itemid=XXXXXXXXXXXXXXXXX&exvsurl=1&path=/calendar/item",
"onlineMeetingUrl": null,
"isOnlineMeeting": false,
"onlineMeetingProvider": "unknown",
"allowNewTimeProposals": true,
"occurrenceId": null,
"isDraft": false,
"hideAttendees": false,
"responseStatus": {
"response": "organizer",
"time": "0001-01-01T00:00:00Z"
},
"body": {
"contentType": "html",
"content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\nDoes noon work for you?\r\n</body>\r\n</html>\r\n"
},
"start": {
"dateTime": "2023-03-10T07:38:40.0550000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2023-03-10T08:38:40.0550000",
"timeZone": "UTC"
},
"location": {
"displayName": "",
"locationType": "default",
"uniqueIdType": "unknown",
"address": {},
"coordinates": {}
},
"locations": [],
"recurrence": null,
"attendees": [],
"organizer": {
"emailAddress": {
"name": "outlook_XXXXX031CC5D@outlook.com",
"address": "outlook_XXXXCC5D@outlook.com"
}
},
"onlineMeeting": null
}