Skip to content
gist.link ↗

removeTeamMember

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

Remove a member from a team. Owner only; cannot remove the last owner.

teams:mutation:removeTeamMember

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 {
removeTeamMember(teamId: Int!, memberId: Int!): TeamMember!
}
Argument Type Required Description
teamId Int! Yes —
memberId Int! Yes —

TeamMember! — 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 RemoveTeamMember($teamId: Int!, $memberId: Int!) { removeTeamMember(teamId: $teamId, memberId: $memberId) { id team_id auth_user_id display_name email role joined_at } }",
"variables": {
"teamId": 10,
"memberId": 10
}
}
JSON