PUT/user/{username}

Replace a user account

Replaces an existing user account with the supplied user details. The request body schema does not require any fields, so include the account values you want stored in the replacement. Only the authenticated user can perform this operation.

1 parameter · 8 body fields
usernamestringrequired
The username of the account to update.

User account details for the replacement; all fields are optional.

idintegeroptional
The user's identifier.
usernamestringoptional
The user's login name.
firstNamestringoptional
The user's first name.
lastNamestringoptional
The user's last name.
emailstringoptional
The user's email address.
passwordstringoptional
The user's password.
phonestringoptional
The user's phone number.
userStatusintegeroptional
User Status

4 status codes
200Returns confirmation that the user account was updated.
400Returned when the request is invalid.
404Returned when the user is not found.
defaultUnexpected error

Error handling

A 400 is returned when the request is invalid, and a 404 is returned when the user is not found. The username path parameter must identify the account to update; the body schema does not mark any fields as required.