Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
API:https://graph.microsoft.com/v1.0/me/events
Request Body:{
"subject": "My event",
"start": {
"dateTime": "2021-07-08T04:46:05.073Z",
"timeZone": "UTC"
},
"end": {
"dateTime": "2021-07-15T04:46:05.073Z",
"timeZone": "UTC"
}
}
It is not supported to create an event along with attachments within a single request, only we can post an attachment to the event after it's created.
We can use the following API to add an attachment to an existing event.
POST /me/events/{eventid}/attachments
{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "$(fileName)",
"contentBytes": "$(base64EncodedString)"
}