Skip to content
gist.link ↗

addTeamMember

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

Add a member to a team by auth user uuid. Owner only.

teams:mutation:addTeamMember

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 {
addTeamMember(teamId: Int!, input: AddTeamMemberInput!): TeamMember!
}
Argument Type Required Description
teamId Int! Yes —
input AddTeamMemberInput! 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 AddTeamMember($teamId: Int!, $input: AddTeamMemberInput!) { addTeamMember(teamId: $teamId, input: $input) { id team_id auth_user_id display_name email role joined_at } }",
"variables": {
"teamId": 10,
"input": {
"authUserId": "example",
"displayName": "Example",
"email": "ada@example.com"
}
}
}
JSON