Skip to content
gist.link ↗

markConversationRead

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

Record the caller’s read position in a conversation. Members only.

teams:mutation:markConversationRead

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 {
markConversationRead(id: Int!, lastReadMessageId: Int!): Conversation!
}
Argument Type Required Description
id Int! Yes —
lastReadMessageId Int! Yes —

Conversation! — 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 MarkConversationRead($id: Int!, $lastReadMessageId: Int!) { markConversationRead(id: $id, lastReadMessageId: $lastReadMessageId) { id title created_at } }",
"variables": {
"id": 10,
"lastReadMessageId": 10
}
}
JSON