Skip to content
gist.link ↗

removeReaction

Mutation Teams API — POST https://teams.api.gist.link/graphql

Remove the caller’s emoji reaction from a message.

teams:mutation:removeReaction

The calling IAM key must hold this permission (or a wildcard that covers it: teams:mutation:* or teams:*) and the access token must have been minted with audience=teams. See Permissions.

type Mutation {
removeReaction(messageId: Int!, emoji: String!): Message!
}
Argument Type Required Description
messageId Int! Yes —
emoji String! Yes —

Message! — see the Teams types reference.

Terminal window
curl https://teams.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation RemoveReaction($messageId: Int!, $emoji: String!) { removeReaction(messageId: $messageId, emoji: $emoji) { id channel_id conversation_id parent_id author_user_id author_name body pinned_at } }",
"variables": {
"messageId": 10,
"emoji": "example"
}
}
JSON