Skip to content
gist.link ↗

createTeam

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

Create a team; the caller becomes its first owner. Authenticated.

teams:mutation:createTeam

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 {
createTeam(input: CreateTeamInput!): Team!
}
Argument Type Required Description
input CreateTeamInput! Yes —

Team! — 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 CreateTeam($input: CreateTeamInput!) { createTeam(input: $input) { id name created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"slug": "example"
}
}
}
JSON