Skip to content
SoulFire LogoSoulFire

Update self username

PATCH
/v1/client/username

Updates the username of the currently authenticated user. The change is persisted to the database immediately.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Request Body

application/json
  1. body

Request message for updating the authenticated user's username.

username*string

The new username to set for the current user. This will replace the existing username in the database.

Response Body

Response message for username update operation.

application/json
  1. response

Response message for username update operation. An empty response indicates the operation completed successfully.

Example Request
curl -X PATCH 'http://127.0.0.1:38765/v1/client/username' \
  -H 'Content-Type: application/json' \
  -d '{
  "username": ""
}'
Example Response
{}

Was this page helpful?