---
title: "Update user"
method: PATCH
path: "/accounts/user"
tags: ["User Management"]
---

# Update user

`PATCH /accounts/user`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/user`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/user/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates user information

## Request body

- UpdateUserRequest
  - `email` string: User email (optional, defaults to current user)
  - `first_name` string: First name
  - `last_name` string: Last name
  - `sound` boolean: Enable sound
  - `theme` string: UI theme (light, dark, auto)
  - `totp_enabled` boolean: Enable TOTP authentication
  - `passkey_enabled` boolean: Enable passkey authentication

## Response `200`

User updated successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

## Changes

- **2025-06-10** `964e2801b73d`: 1 breaking, 7 info
  - the request's body type changed from no type to `object`
  - added the new optional request property `email`
  - added the new optional request property `first_name`
  - added the new optional request property `last_name`
  - …4 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/user/patch.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
