Choose your username
Chooses or changes the username of the person.
Runs the real call on your workspace.
PUT /account/username
Chooses or changes the username of the person.
Example
Needs account:write. username has to be 3 to 30 lowercase letters, numbers and single dots once it is lowercased and its spaces become dots. Answers with the username, now chosen.
curl -X PUT "$API/account/username" -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "username": "ada.lovelace" }'{ "object": "username", "username": "ada.lovelace", "chosen": true}A username made for the person can be replaced at any time. After that it can change once a year, and a change within a year of the last one is a 409 username_locked whose message says when the next change is possible. Check one first with GET /account/username/availability.
The old username is never given to anyone else, so a username another account has or had is a 409 username_taken. One that is too short, too long, reserved or not written as above is a 422 invalid_parameter on username, and the message says which.
Sending the username the person already has changes nothing and answers with it, so a retry after a lost response is safe.