Microsoft Graph API edit chat messages

Amit Singh Rawat 731 Reputation points
2022-07-21T08:00:28.077+00:00

I am following the below document to update the Microsoft Team's chat message. https://learn.microsoft.com/en-us/graph/api/chatmessage-update?view=graph-rest-1.0&tabs=http

As per the document, we can Only update the policyViolation property of a chatMessage can be updated.

It doesn't specify whether it is a post or get request. I tried both via graph explorer. GET return the message details and post return error "Requested API is not supported. Please check the path."

Does anybody know how to call this API via graph explorer.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2022-07-21T08:50:29.313+00:00

    Hi @Amit Singh Rawat

    According to the api doc, updating chat messages doesn't yet support delegated permissions, so you can't call that API with the graph explorer, because the graph explorer uses delegated permissions by default.

    You should grant application permission for your application, then use client credential flow to get access token and finally use your application token in postman to call this api.

    222948-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.