PUT
/user/{username}Replace a user account
Replaces the user account identified by username with the supplied user details. The request body is optional and defines fields for the user's identifier and account information. Only the authenticated user can perform this operation.
usernamestringrequired
The name identifying the user account to update.
User account details for the update, supplied as JSON, XML, or URL-encoded form data.
idintegeroptional
The user's 64-bit integer 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
200Returns a successful-operation response; no response body is defined.
400Returned when the update request is invalid.
404Returned when the user is not found.
defaultUnexpected error
Error handling
A 400 is returned when the update request is invalid. A 404 is returned when the username path parameter does not identify an existing user. The body is optional, and none of its fields are required by the schema.