# Update organization

`PATCH /v1/organizations/{organization}`, operation `organizations.UpdateOrganization`

Renames an organization. Its slug never changes.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |

## Request body

Content-Type: `application/json` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `displayName` | `string` | No | Name shown in user interfaces. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `createTime` | `string (date-time)` | Yes | When the organization was created. |
| `displayName` | `string` | Yes | Name shown in user interfaces. |
| `name` | `string` | Yes | Resource name, organizations/{organization_id}. The ID is generated by the server and never changes. |
| `slug` | `string` | Yes | Globally unique, human-readable alias. It never changes, so that links to the organization keep working. |
| `state` | `string` | Yes | Lifecycle state. An organization whose deletion was requested is purged after a grace period unless it is undeleted. Values: `ACTIVE`, `DELETE_REQUESTED`. |
| `updateTime` | `string (date-time)` | Yes | When the organization was last updated. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.