Updating email content in inbox using graph api

Noam Shabat 21 Reputation points
2021-09-09T07:17:49.633+00:00

Hi.

I've been playing around with graph explorer trying to update emails that already exist in my inbox.
I need to update the message body.

Looking at the API reference, it says that i can only update the subject for draft emails, however i've been able to successfully update the emails in my inbox and change the body content.

So functionality and documentation are mis-matched (or perhaps I didn't understand something)
My question is - can I rely on this behavior? is this a documentation bug? or is this a bug in the graph API?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Maggie Rain 161 Reputation points
    2021-09-15T14:48:25.24+00:00

    When I call the endpoint https://graph.microsoft.com/v1.0/me/sendMail using a Patch or Put method I receive a Method Not Allowed - 405 error.

    Based on this https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0 documentation I get the expected behavior.

    From my end I haven't been able to replicate the same behavior, of being able to update the email body of an an mail in my inbox.

    Please share the request ID and the time stamp of when you made the API call, this would enable the team to investigate this case further.