Skip to content
gist.link ↗

setDocEditing

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

Ephemeral “I’m editing this doc” signal. Publishes a doc.editing Mercure event to the team topic; nothing is stored. Clients re-ping (~5s) while the editor is open and expire indicators locally. Any team member.

teams:mutation:setDocEditing

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 {
setDocEditing(docId: Int!): Boolean!
}
Argument Type Required Description
docId 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 SetDocEditing($docId: Int!) { setDocEditing(docId: $docId) }",
"variables": {
"docId": 10
}
}
JSON