PUT ./auth/username

It is used to change the username of a user.

Parameters chID and chResponse can be taken from POST ./auth/challenge_phone or POST ./auth/challenge_email with intent register

Parameters chID and chResponse will not be needed if the new username is the email or the phone number and has been saved and validated in the contact details.

PUT parameters

NameValue TypeValidationDetails
uaIDintRequiredUser ID.
uaUserNamestringRequiredUsername. Valid email or phone number; min_length[6].
chIDintRequiredChallenge ID.
chResponsestringRequiredChallenge response.

Validation

Error FieldError CodeError Message
uaID101Invalid uaID.
uaUserName102Invalid password.
uaUserName103Username already exists.
chID103Invalid chID sau chResponse.

Output example

{
"result": true
}