Patch Profile
Changed onChange the account's username, or its OnlyWorld with only_world.
A username the rule refuses (the body's description says it) is a 422 invalid_request with param username and a sentence that says why, and nothing in the body is written. only_world takes the id of a world the account owns; an id that names no world of the account's is a 404 and nothing in the body is written. Null clears the choice, and the oldest world the account owns serves again. Answers the account as GET /api/v2/account does.
Request
- Base URLhttps://www.onlyworlds.com
- Auth
- HTTP bearer
- or API key in header X-Session-Token
Request body
The account's username, held to the rule sign-up holds it to: only the ASCII letters a to z (small or capital), the digits 0 to 9 and . + - _, with at least one letter or digit, at most 30 characters; not another account's name when case is ignored; and not the word owner in any case. The account's own name sent back unchanged is kept as it is, whatever it holds, and a change of only the case of one's own name is not refused as taken.
The id of a world the account owns, to make it the account's OnlyWorld; null clears the choice.
Response
The account, changed.
The account's OnlyWorld, the one world that stands for it: the world the person chose, else the oldest world the account owns, else null.
True when only_world is the person's choice; false when it is the oldest world the account owns, or null.
Changes
- info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status
3 more changes in this revision
- info