me.message
Add file attachment
Changed onUse this API to add a file attachment to a message. An attachment can be one of the following types: fileAttachment, itemAttachment, or referenceAttachment. All these types of attachment resources are derived from the attachment resource. For file attachments smaller than 3 MB, use this endpoint. For larger files, use the createUploadSession endpoint.
post/me/messages/{messageId}/attachments
Request
- Base URLhttps://graph.microsoft.com/v1.0
- AuthOAuth 2Authorization codehttps://login.microsoftonline.com/common/oauth2/v2.0/authorizeClient credentialsToken URLhttps://login.microsoftonline.com/common/oauth2/v2.0/tokenScopesMail.Read, Mail.ReadWrite, Mail.Send
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Created attachment
Changes
- info
added the new optional request property
/ - info
added the optional property
/to the response with the status
- info
- info
api operation id
me.messages.CreateAttachmentsremoved and replaced withaddAttachment
- info