Update project owner

http
PATCH /projects/{project_reference}/owner

Transfers project ownership from the calling owner to another existing member and demotes the previous owner to admin. Requires project.members.manage.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
user_idstringYesExisting member who becomes owner; must differ from the current owner. The previous owner becomes admin.

Responses

StatusDescription
200The new owner. Previous owners become admins, and the new owner member AI budget is removed.
400Invalid user ID, the project has no current owner, or the user already owns it
401Unauthorized
403Forbidden - insufficient permissions, the caller is not the current owner, or the project is system-managed
404Project or member not found
413Payload too large
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.