PUT
/user/{username}Replace a user's details
Replaces the stored details for a user identified by username. Include the user details to apply in the optional request body; no individual body fields are marked as required.
usernamestringrequired
The username of the user whose details you want to replace.
Optional details to apply to the existing user.
idintegeroptional
The user's numeric identifier.
usernamestringoptional
The user's username.
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 response after the user details are updated.
400Returned when the update request is invalid.
404Returned when no user is found for the supplied username.
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.