---
title: "Update a users username given their userId."
method: PATCH
path: "/users/username"
tags: ["Users"]
---

# Update a users username given their userId.

`PATCH /users/username`

Update user information given a user's userId. Returns a JSON result.

## Request body

- UsernameUpdateBody
  - `userId` string, required
  - `userName` string

## Response `200`

Successfully updated user

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Entity - params are invalid

---

[API](https://skmtc.net/archives/apis/catalog-api.md) · [All operations](https://skmtc.net/archives/apis/catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/archives/catalog-api/versions/cafec81df996/schema)
