# Rename your workspace

> Rename your workspace: reference page for this CustomDomain™ API operation in the tenancy group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/tenancy/updateTenant

## `PATCH https://api.customdomain.ai/v1/tenants/{id}`

The caller's own tenant only (admin and above); any other id is a `404`.

### Authentication

`apiKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes |  |

### Responses

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

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no |  |
| `name` | string | no |  |

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