Update project member

updateProjectMember(projectReference: ID!, userId: ID!, input: UpdateProjectMemberInput!): ProjectMember!

Requires project.members.manage.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID, slug or domain.
userIdID!YesUser ID of an existing non-owner member.
inputUpdateProjectMemberInput!Yes

Input fields

input

UpdateProjectMemberInput

FieldTypeRequiredDescription
roleAssignableProjectRole!YesNew role. Owner promotion and changing the current owner are rejected; use updateProjectOwner.

Response

Returns ProjectMember!. Open the type for its fields and nested types.

FieldTypeDescription
userIdID!
emailString!
nameStringDisplay name; null when the member has none.
avatarSrcStringAvatar URL; null when the member has none.
roleProjectRole!
capabilities[String!]!Project capabilities the role grants.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateProjectMember($projectReference: ID!, $userId: ID!, $input: UpdateProjectMemberInput!) {
  updateProjectMember(projectReference: $projectReference, userId: $userId, input: $input) {
    name
    avatarSrc
    capabilities
    email
    role
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "userId": "00000000-0000-4000-8000-000000000001",
  "input": {
    "role": "admin"
  }
}