Mutation / admin
setTeamMemberRole
Set a team member's role. Team admins administer the stacks the team owns. Requires team:write permission.
Arguments
teamIdTeamID!Team containing the membership
userIdUserID!Member whose role changes
roleTeamMemberRole!New role
Returns SetTeamMemberRolePayload!
Explore in a view
View exact SDL
"""
Set a team member's role. Team admins administer the stacks the team owns. Requires team:write permission.
"""
setTeamMemberRole(
"""Team containing the membership"""
teamId: TeamID!
"""Member whose role changes"""
userId: UserID!
"""New role"""
role: TeamMemberRole!
): SetTeamMemberRolePayload! @topic(names: ["admin"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.