# 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

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |

## Request body

| Field     | Type   | Required | Description                                                                                              |
| --------- | ------ | -------- | -------------------------------------------------------------------------------------------------------- |
| `user_id` | string | Yes      | Existing member who becomes owner; must differ from the current owner. The previous owner becomes admin. |

## Responses

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