Edit Account

Change your display name, username or password.
EndpointMethodAdmin Required
/api/v1/usersPUTNo

Updates the authenticated user's own account. name and username are always sent; a password change is requested by sending both currentPassword and newPassword.

Changing the username requires currentPassword as well. A username is how a local account gets linked to an SSO identity on first login, so a rename must prove it comes from the account's owner and not merely from someone holding one of its access keys.

Request Body

name
string required
Display name.
username
string required
Username. Send the current one to leave it unchanged. A new username must be 1-128 characters, contain no /, \\ or control characters, not start with a ., not be blank, and be unique - the rule is only applied to a change, so an account created under older rules can still edit its other fields.
currentPassword
string
Your current password. Required when changing the username or the password.
newPassword
string
The new password. Only applied together with a correct currentPassword.

Change the display name

{
    "name": "John A. Doe",
    "username": "john"
}

Change the password

{
    "name": "John Doe",
    "username": "john",
    "currentPassword": "old-password",
    "newPassword": "new-password"
}

Rename

{
    "name": "John Doe",
    "username": "john.doe",
    "currentPassword": "old-password"
}

Response

{
    "name": "John Doe",
    "username": "john.doe"
}
Accounts provisioned through SSO have no password of their own and therefore cannot rename themselves through this endpoint. An administrator can rename any account with Edit User, which needs no password.

Errors

StatusReason
400Validation failed (empty name or username, or a new username that breaks the rule above)
401Username changed without a correct currentPassword, or currentPassword is incorrect for a password change
409Username already exists