0
votes

I want to create a message using MIME format in Microsoft Graph API, using the example from page https://docs.microsoft.com/en-us/graph/outlook-send-mime-message#specify-request-header-and-mime-message-body, and I end up getting a BadRequest (400) result with the message {"error":{"code":"UnableToDeserializePostBody","message":"were unable to deserialize "}} and I can’t figure out why.

What I know so far is that the message is correctly base 64 formatted (I use the base 64 string from the example) and content-type is set to text/plain, which is all the documentation asks for.
Is there any way to have more details about the failure?
Did anyone have a similar issue?
I’m out of ideas ????

Thanks.