Skip to content
gist.link ↗

createCheckIn

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

Create a recurring check-in question. Team owner only.

teams:mutation:createCheckIn

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 {
createCheckIn(teamId: Int!, input: CreateCheckInInput!): CheckIn!
}
Argument Type Required Description
teamId Int! Yes —
input CreateCheckInInput! Yes —

CheckIn! — 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 CreateCheckIn($teamId: Int!, $input: CreateCheckInInput!) { createCheckIn(teamId: $teamId, input: $input) { id team_id question cadence weekday hour active created_at } }",
"variables": {
"teamId": 10,
"input": {
"question": "example"
}
}
}
JSON