PUT/user/{username}

Replace user account details

Replaces the user details for the account identified by username. Supply the username path parameter and, optionally, user fields in the request body to update the account. The operation is limited to the authenticated user.

1 parameter · 8 body fields
usernamestringrequired

The username of the account to update.

User account fields to update. The request body and all fields are optional.

emailstringoptional

The user's email address.

firstNamestringoptional

The user's first name.

idintegeroptional

The user's identifier as a 64-bit integer.

lastNamestringoptional

The user's last name.

passwordstringoptional

The user's password.

phonestringoptional

The user's phone number.

userStatusintegeroptional

User Status

usernamestringoptional

The user's username.

4 status codes
200Returns a successful response after updating the user.
400Returned when the request is invalid.
404Returned when the user is not found.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when the request is invalid. A 404 is returned when the user is not found. The username path parameter identifies the account; the optional request body has no schema-required fields.