Skip to content

Update the authenticated user

PATCH/user

Updates the authenticated caller's username and/or email. Both fields are optional but at least one must be supplied; only fields present in the body are changed.

The username goes through the same rules as the web settings page (max 24 characters, alphanumeric and dashes, not a reserved word). The email is lowercased server-side and the gravatar hash recomputed.

Request

Headers

NameTypeScopes
Authorizationrequiredstringuser:write

Body parameters

UpdateUserRequestrequiredapplication/json

FieldTypeDescription
usernameoptionalstringNew username (max 24 chars, alphanumeric and dashes, not reserved).
emailoptionalstringNew email; lowercased server-side.

Responses

StatusBodyDescription
200PrivateUserThe updated user.
401ErrorMissing or invalid credentials.
403ErrorThe token lacks the required scope or permission.
409ErrorThe request conflicts with the current state (e.g. username already taken).
422ErrorThe request body failed validation.