MailAttachmentUploadLarge

Summary

  • Creates an upload session for large attachments; your client uploads file chunks directly to the provided URL.

Graph Endpoint

  • POST /me/messages/{messageId}/attachments/createUploadSession

Parameters

Required

  • messageId: string — Alias: id

  • One of:

    • attachmentIds: number[] — Up to 10 repository attachment IDs; backend uploads the files completely.

    • name: string — When requesting an upload session (legacy/external upload)

  • size: number

Optional

  • contentType: string — Default application/octet-stream

Usage (app.businessFunction)

Requesting an upload session (external upload)

Response

Notes

  • Backend handles upload sessions and chunked PUTs for attachmentIds. Limit: max 10 attachments per call.

  • If you request an upload session, upload file chunks to uploadUrl using HTTP PUT with byte ranges as described in Microsoft Graph documentation.

See also

Last updated

Was this helpful?