> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-beta.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server.

# Update User

PATCH https://api.getzep.com/api/v2/users/{userId}
Content-Type: application/json

Updates a user.

Reference: https://docs-beta.getzep.com/sdk-reference/user/update

## Request

### Path parameters

- `userId` (string, required) — User ID

### Body (application/json)

This endpoint expects an apidata.UpdateUserRequest.

- `disable_default_ontology` (boolean, optional) — When true, disables the use of default/fallback ontology for the user's graph.
- `email` (string, optional) — The email address of the user.
- `first_name` (string, optional) — The first name of the user.
- `last_name` (string, optional) — The last name of the user.
- `metadata` (map from string to any, optional) — The metadata to update
- `time_zone` (string, optional, nullable) — The user's IANA time zone. Null clears the existing value.

## Response

### 200

The user that was updated.

- `created_at` (string, optional)
- `deleted_at` (string, optional)
- `disable_default_ontology` (boolean, optional)
- `email` (string, optional)
- `first_name` (string, optional)
- `graph_uuid` (string, optional) — GraphUUID is the graphs.uuid of the user's graph (spec-3 section 13.5). Omitted when the graph row does not exist. Read-only; never accepted as input.
- `id` (integer, optional)
- `last_name` (string, optional)
- `metadata` (map from string to any, optional) — Deprecated
- `project_uuid` (string, optional)
- `session_count` (integer, optional) — Deprecated
- `time_zone` (string, optional, nullable)
- `updated_at` (string, optional) — Deprecated
- `user_id` (string, optional)
- `uuid` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, optional)

### 404 Not Found Error

Not Found

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "created_at": "string",
  "deleted_at": "string",
  "disable_default_ontology": true,
  "email": "string",
  "first_name": "string",
  "graph_uuid": "string",
  "id": 1,
  "last_name": "string",
  "metadata": {},
  "project_uuid": "string",
  "session_count": 1,
  "time_zone": "string",
  "updated_at": "string",
  "user_id": "string",
  "uuid": "string"
}
```