Skip to content

Latest commit

 

History

History
138 lines (102 loc) · 3.48 KB

File metadata and controls

138 lines (102 loc) · 3.48 KB
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/05/2024

chatMessage: unsetReaction

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Unset a reaction to a single chatMessage or a chat message reply in a channel or a chat.

[!INCLUDE national-cloud-support]

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permissions for channel

Permission type Permissions (from least to most privileged)
Delegated (work or school account) ChannelMessage.Send
Delegated (personal Microsoft account) Not supported.
Application Not supported.

Permissions for chat

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.

HTTP request

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}/unsetReaction

To unset a reaction to a chatMessage in a chat:

POST /chats/{chatId}/messages/{chatMessageId}/unsetReaction

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

In the request body, supply the reactionType as unicode.

Response

If successful, this action returns a 204 No Content response code.

Examples

Example 1: Unset a reaction to a chat message

Request

POST https://graph.microsoft.com/beta/chats/chatId/messages/messageId/unsetReaction
{
  "reactionType": "💘"
}

Response

HTTP/1.1 204 No Content

Example 2: Unset a reaction to a message in a channel

Request

POST https://graph.microsoft.com/beta/teams/teamsid/channels/channelId/messages/messageId/unsetReaction
{
  "reactionType": "💘"
}

Response

HTTP/1.1 204 No Content

Example 3: Unset a reaction to a message reply

Request

POST https://graph.microsoft.com/beta/teams/teamsid/channels/channelId/messages/messageId/replies/replyId/unsetReaction
{
  "reactionType": "💘"
}

Response

HTTP/1.1 204 No Content