Skip to content
gist.link ↗

deleteMessage

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

Delete a chat message. Author (channel: also team owner/org admin).

teams:mutation:deleteMessage

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 {
deleteMessage(id: Int!): Boolean!
}
Argument Type Required Description
id Int! Yes —

Boolean!.

Terminal window
curl https://teams.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation DeleteMessage($id: Int!) { deleteMessage(id: $id) }",
"variables": {
"id": 10
}
}
JSON