Skip to content
gist.link ↗

pinDoc

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

Pin/unpin a doc. Any team member.

teams:mutation:pinDoc

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

Doc! — 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 PinDoc($id: Int!, $pinned: Boolean!) { pinDoc(id: $id, pinned: $pinned) { id title created_at updated_at } }",
"variables": {
"id": 10,
"pinned": true
}
}
JSON