---
title: "PUT /api/users/{userId}"
method: PUT
path: "/api/users/{userId}"
tags: ["api/users"]
---

# PUT /api/users/{userId}

`PUT /api/users/{userId}`

## Request

- Base URL: `http://localhost:5002`
- URL: `http://localhost:5002/api/users/{userId}`
- Auth: none declared. Required headers: `userid`, `authorization`

## Path parameters

- `userId` string, required

## Headers

- `userid` string, required
- `authorization` string, required

## Request body

- Model20
  - `email` string
  - `password` string
  - `oldPassword` string, required
  - `name` string
  - `type` 'user' | 'admin'
  - `avatar` string
  - `avatar_3d` Metadata

## Response `default`

Successful

---

[API](https://skmtc.dev/breshna/apis/breshna-backend-apis.md) - [All operations](https://skmtc.dev/breshna/apis/breshna-backend-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/breshna/apis/breshna-backend-apis/revisions/c1038f1781fe?raw)
