---
title: "Update user"
method: PUT
path: "/user/{username}"
tags: ["user"]
---

# Update user

`PUT /user/{username}`

This can only be done by the logged in user.

## Path parameters

- `username` string, required

## Request body

- User
  - `id` integer
  - `username` string
  - `firstName` string
  - `lastName` string
  - `email` string
  - `password` string
  - `phone` string
  - `userStatus` integer — User Status

## Response `default`

successful operation

## Changes

- **2024-11-20** `850aef3ee4df` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0/changes/user/:username/put.md)

---

[API](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0.md) · [All operations](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/drpcorg/swagger-chotki-openapi-3-0/revisions/850aef3ee4df/schema)
