How to add file attachment in the mailbody when I send meeting invitation to some one (API:

rajasekhar gogineni 6 Reputation points

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"

Microsoft Graph Reports API
Microsoft Graph Reports API
A Microsoft API that enables you to understand application and resource activity in your Azure Active Directory (Azure AD) tenant.
84 questions
Microsoft Graph Calendar API
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
326 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
740 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JosephXu-MSFT 526 Reputation points

    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)"