---
title: "Change the username of the current user that you are logged in as"
method: PUT
path: "/v1/resourceowner/user/changeusername"
tags: ["ResourceOwnerUser"]
---

# Change the username of the current user that you are logged in as

`PUT /v1/resourceowner/user/changeusername`

This will change the username.

## Request body

- ChangeUserNameModel
  - `NewUserName` string

## Response `200`

The username was saved

## Other responses

- `400` — Request is bad, This username is already used
- `500` — Internal server error

---

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