Update project owner

updateProjectOwner(projectReference: ID!, input: UpdateProjectOwnerInput!): ProjectMember!

Requires project.members.manage.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID, slug or domain. The caller must be the current owner.
inputUpdateProjectOwnerInput!Yes

Input fields

input

UpdateProjectOwnerInput

FieldTypeRequiredDescription
userIdID!YesExisting member who becomes owner; must differ from the current owner. The previous owner becomes admin.

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!
sourceProjectMemberSource!Where the access comes from: project or account.
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

query.graphql
mutation UpdateProjectOwner($projectReference: ID!, $input: UpdateProjectOwnerInput!) {  updateProjectOwner(projectReference: $projectReference, input: $input) {    name    avatarSrc    capabilities    email    role  }}
variables.json
{  "projectReference": "00000000-0000-4000-8000-000000000001",  "input": {    "userId": "00000000-0000-4000-8000-000000000001"  }}