---
title: "Upload Avatar"
method: POST
path: "/api/users/avatar"
tags: ["users"]
---

# Upload Avatar

`POST /api/users/avatar`

## 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/avatar`
- Auth: HTTP bearer

Upload a user avatar image to the temporary upload folder
Returns the filename that can be used later in user creation/update

## Headers

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

## Request body `multipart/form-data`

- BodyUploadAvatarApiUsersAvatarPost
  - `file` string, binary, required

## Response `200`

Successful Response

- string

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