Announcements
Hi !
I am having trouble setting the subject of a draft email created by another http request in Flow. The "update message" HTTP request is returning status code 400 and I cannot figure it out. Does anyone have any pointers?
Results:
I've reduced the flow to only the update message api call and hardcoding the messageID
I've double checked the ID using the webLink URL provided by the createreplydraft call in the example above.
I still get error 400. Could this be a permission issue? The message does have isdraft:true. So I should be allowed to update it!
One more finding, the get message API call works for that messageID.
Update Message (fails)
{"Uri": "https://graph.microsoft.com/v1.0/me/messages/AAMkAGZjZjZkM2I2LTljMTctNDhjMy1iNjBlLTIwZDBhMDVmNjUxZABGAAAAAABiNIb03MPiR5A8XwnvWMsTBwBofBcqEsIPQp0LDJ6FVo5rAAAAAAEPAABofBcqEsIPQp0LDJ6FVo5rAACNNU44AAA=","Method": "PATCH","Body": "{\n \"subject\": \"TEST\",\n \"body\": {\n \"contentType\": \"\",\n \"content\": \"content-value\"\n },\n \"inferenceClassification\": \"other\"\n}","ContentType": "application/json"}
Get Message (works)
{"Uri": "https://graph.microsoft.com/v1.0/me/messages/AAMkAGZjZjZkM2I2LTljMTctNDhjMy1iNjBlLTIwZDBhMDVmNjUxZABGAAAAAABiNIb03MPiR5A8XwnvWMsTBwBofBcqEsIPQp0LDJ6FVo5rAAAAAAEPAABofBcqEsIPQp0LDJ6FVo5rAACNNU44AAA=","Method": "GET","ContentType": "application/json"}
Not sure if this is of any help!
As you don't need to modify the message body, remove the "Body":{} part completely.
Also, setting the "inferenceClassification" is useless for drafts.
Run Graph Explorer and play a bit with PATCH request.
I’ve changed the json to include only the subject, and the request was successful. Thanks !
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 594
Valantis 328
David_MA 281 Super User 2026 Season 1