| title | chatMessage: unsetReaction |
|---|---|
| description | Unset a reaction to a single message or message reply in a channel or a chat. |
| author | sumanac |
| ms.subservice | teams |
| doc_type | apiPageType |
| ms.localizationpriority | medium |
| ms.date | 04/04/2024 |
Namespace: microsoft.graph
Unset a reaction to a single chatMessage or a chat message reply in a channel or a chat.
[!INCLUDE national-cloud-support]
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
| Permission type | Permissions (from least to most privileged) |
|---|---|
| Delegated (work or school account) | ChannelMessage.Send |
| Delegated (personal Microsoft account) | Not supported. |
| Application | Not supported. |
| Permission type | Permissions (from least to most privileged) |
|---|---|
| Delegated (work or school account) | Chat.ReadWrite, ChatMessage.Send |
| Delegated (personal Microsoft account) | Not supported. |
| Application | Not supported. |
To unset a reaction to a chatMessage in a channel:
POST /teams/{teamsId}/channels/{channelId}/messages/{chatMessageId}/unsetReaction
POST /teams/{teamId}/channels/{channelId}/messages/{messageId}/replies/{replyId}/unsetReactionTo unset a reaction to a chatMessage in a chat:
POST /chats/{chatId}/messages/{chatMessageId}/unsetReaction| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
In the request body, supply the reactionType as unicode.
If successful, this action returns a 204 No Content response code.
POST https://graph.microsoft.com/v1.0/chats/chatId/messages/messageId/unsetReaction
{
"reactionType": "💘"
}HTTP/1.1 204 No ContentPOST https://graph.microsoft.com/v1.0/teams/teamsid/channels/channelId/messages/messageId/unsetReaction
{
"reactionType": "💘"
}HTTP/1.1 204 No ContentPOST https://graph.microsoft.com/v1.0/teams/teamsid/channels/channelId/messages/messageId/replies/replyId/unsetReaction
{
"reactionType": "💘"
}HTTP/1.1 204 No Content