---
title: "Update User"
method: PATCH
path: "/api/users/{uuid}"
tags: ["users"]
---

# Update User

`PATCH /api/users/{uuid}`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/users/{uuid}`
- Auth: HTTP bearer

## Path parameters

- `uuid` string, uuid, required

## Headers

- `X-User-Email` string, nullable
- `X-User-Name` string, nullable

## Request body

- UserUpdate
  - `name` string, nullable
  - `phone_number` string, nullable
  - `temporary_avatar_filename` string, nullable
  - `remove_avatar` boolean
  - `ui_language` 'en' | 'pt' | 'es', nullable

## Response `200`

Successful Response

- UserBase
  - `uuid` string, uuid4, required
  - `name` string, required
  - `phone_number` string, nullable
  - `email` string, email, required
  - `avatar_file_name` string, nullable
  - `ui_language` 'en' | 'pt' | 'es', nullable
  - `avatar_url` string, nullable, required: Get the avatar URL based on the filename if one exists

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
