Magidoc

addProjectOwner
Mutation

Add a user to the project owner list. This is additive — existing owners are kept. To replace owners, always call addProjectOwner for the new owner(s) first, then removeProjectOwner for each previous owner — this ensures the project never has zero owners at any point.

Arguments

#

projectId

ID !
Non-null

Project ID to add owner to

ownerId

ID !
Non-null

User ID to add as owner

workspaceId

ID !
Non-null

Workspace ID of the project

Response

#

Returns Project .

Example

#