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
Name | Value Type | Validation | Details |
---|---|---|---|
uaID | int | Required | User ID. |
uaUserName | string | Required | Username. Valid email or phone number; min_length[6]. |
chID | int | Required | Challenge ID. |
chResponse | string | Required | Challenge response. |
Validation
Error Field | Error Code | Error Message |
---|---|---|
uaID | 101 | Invalid uaID. |
uaUserName | 102 | Invalid password. |
uaUserName | 103 | Username already exists. |
chID | 103 | Invalid chID sau chResponse. |
Output example
{"result": true}