# Transfer the workspace to another member

> Transfer the workspace to another member: CustomDomain™ API reference in the members group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/members/transferOwnership

## `POST https://api.customdomain.ai/v1/members:transfer-ownership`

The workspace's creator makes another member who has accepted their invite the owner of the workspace; the creator becomes an admin. Only the creator may do this, and not with an agent's token or the workspace default key. Answers 404 where the feature is not enabled.

### Authentication

`apiKey`

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `member_id` | string | yes | The member who becomes the owner. |

### Responses

| Status | Description |
| --- | --- |
| `200` | Transferred |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |
| `409` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `owner` | object | no |  |
| `previous_owner` | object | no |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
