---
title: "Set Username"
method: POST
path: "/v1/auth/set-username"
tags: ["Auth"]
---

# Set Username

`POST /v1/auth/set-username`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/v1/auth/set-username`
- Auth: OAuth 2 (password, token URL `/v1/auth/login`)

Set username for the current user (one-time only).

## Request body

- SetUsername
  - `username` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
