Skip to content

Request a change of a user username.

POST
/api/auth/v1/change_username
curl --request POST \
--url https://example.com/api/auth/v1/change_username \
--header 'Content-Type: application/json' \
--data '{ "err_redirect_uri": "example", "redirect_uri": "example", "new_username": "example" }'
redirect_uri
string | null

Success (and error if err_redirect_uri not present) redirect target for non-JSON requests.

err_redirect_uri
string | null

Error redirect target for non-JSON requests.

Media typeapplication/json
object
err_redirect_uri

Error redirect target for non-JSON requests.

string | null
redirect_uri

Success (and error if err_redirect_uri not present) redirect target for non-JSON requests.

string | null
new_username
string | null
Examplegenerated
{
"err_redirect_uri": "example",
"redirect_uri": "example",
"new_username": "example"
}

Success, when redirect_uri not present.

Success, when redirect_uri present.

Fail, username already taken.

Fail, something went wrong.