Assigns an existing project member as owner when called by the current project owner or an account administrator, and demotes the previous owner to admin. Requires project.members.manage.
Arguments
projectReferenceID!requiredProject UUID, slug or domain. The caller must be the current owner.
inputUpdateProjectOwnerInput!requiredinput.userIdID!requiredExisting member who becomes owner; must differ from the current owner. The previous owner becomes admin.
Responses
mutation UpdateProjectOwner($projectReference: ID!, $input: UpdateProjectOwnerInput!) { updateProjectOwner(projectReference: $projectReference, input: $input) { userId email name avatarSrc role source capabilities }}{ "data": { "updateProjectOwner": { "userId": "string", "email": "[email protected]", "name": "string", "avatarSrc": "string", "role": "owner", "source": "project", "capabilities": [ "string" ] } }}The ProjectMember! in data.updateProjectOwner.