---
title: "Update username"
method: PUT
path: "/u/{username}/preferences/username.json"
tags: ["Users"]
---

# Update username

`PUT /u/{username}/preferences/username.json`

## Path parameters

- `username` string, required

## Request body

- object
  - `new_username` string, required

## Response `200`

username updated

---

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