PUT
/user/{username}Replace a user resource
Replaces the user resource identified by a username. Submit the user details in JSON, XML, or form-urlencoded format; the request body and all listed fields are optional. Only the authenticated user can perform this operation.
usernamestringrequired
The name of the user resource to update.
User details to apply to the existing account.
idintegeroptional
The user's numeric identifier.
usernamestringoptional
The user's account 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
200Confirms that the user resource was updated.
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 no user is found for the username path parameter.