Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,686 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using microsoft graph api to send messages to Microsoft Teams, and I noticed that in the request body all message content in "content" could only send single text.
I would like to send an JSON format message in the "content" block, so I set "contentType" as "application/json" in the request body, and the content look like this:
"content":{"value1":0.1, "value2":0.5}
However, it returns "Invalid request body content"
I could success by setting contentType as html, but how could I send JSON content?