# Update user

`PATCH /v1/users/{user}`, operation `users.UpdateUser`

Changes the caller's name. Use me, or the caller's own ID; nobody changes anyone else's.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `user` | path | Yes | `string` | The user's ID, or me for the caller. |

## 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 user first signed in. |
| `displayName` | `string` | Yes | Name shown in user interfaces. |
| `email` | `string` | Yes | Email address, as verified by the identity provider. |
| `name` | `string` | Yes | Resource name, users/{user_id}. |

### 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.