How to update (edit) a Microsoft Teams message (thread or reply) inside a Teams channel via REST API

lnarayana 16 Reputation points
2022-05-12T12:11:22.003+00:00

How to update (edit) a Microsoft Teams message (thread or reply) inside a Teams channel via REST API

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

2 answers

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,756 Reputation points Microsoft Vendor
    2022-05-12T13:16:32.543+00:00

    Hi @lnarayana ,

    Using Graph REST APIs it is possible only to Create a new root message in a channel, Reply to an existing chat message in a channel.

    You cannot edit/update a posted message in teams channel using Graph REST APIs.

    Currently the policyViolation property of a chatMessage can be updated.

    Note: This API has licensing and payment requirements. It supports the model=A query parameter. If no model is specified, evaluation mode will be used.

    Reference: chat message methods
    chatmessage-update

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    0 comments No comments

  2. Cronje van Heerden 1 Reputation point
    2022-11-29T05:35:32.167+00:00

    I have created a new item in the feedback portal, as I couldn't find an existing item.

    It is possible to update message via API on both Slack and Google Chat.

    Please add votes.

    https://feedbackportal.microsoft.com/feedback/idea/1b2f43ee-a56f-ed11-a81b-000d3ae32cd0

    0 comments No comments

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.