question

lnarayana-7792 avatar image
0 Votes"
lnarayana-7792 asked lnarayana-7792 commented

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

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

microsoft-graph-teamworkmicrosoft-graph-applications
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @lnarayana-7792, would you mind providing any update on status of this issue?

0 Votes 0 ·

Hi @ZehuiYaoMSFT-7151, Still the issue is not resolved We need an API to update messages in the teams

0 Votes 0 ·

1 Answer

SrinivasaRaoDarna-MSFT avatar image
0 Votes"
SrinivasaRaoDarna-MSFT answered

Hi @lnarayana-7792,

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".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.