---
title: "Update a user by username"
method: PATCH
path: "/v1/users/{username}"
tags: ["Users (User)"]
---

# Update a user by username

`PATCH /v1/users/{username}`

## Path parameters

- `username` string, required

## Request body

- UpdateUserRequest
  - `username` string
  - `password` string

## Response `200`

User updated successfully

## Changes

> 2 revisions in range; 1 could not be searched.

- **2023-08-01** `eaa698f0f7cb` — 1 info
  - the `path` request parameter `username` became optional

[Change history](https://skmtc.dev/openloyalty/apis/loyalty-blockchain-api/changes/v1/users/:username/patch.md)

---

[API](https://skmtc.dev/openloyalty/apis/loyalty-blockchain-api.md) · [All operations](https://skmtc.dev/openloyalty/apis/loyalty-blockchain-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openloyalty/loyalty-blockchain-api/revisions/e825144e9ffd/schema)
