PUT/user/{username}

Replace a user resource

Replaces the user resource identified by the supplied username. Send the user details to apply in the request body; the schema does not mark any body fields as required. The operation is described as available only to the authenticated user.

1 parameter · 8 body fields
usernamestringrequired
The username identifying the user to update.

User details for updating the user resource. The request body is optional, and no fields are marked as required.

idintegeroptional
The user's 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

4 status codes
200Returns a successful-operation response; no response body is specified.
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. A 404 is returned when the username path parameter does not identify a user. The schema does not mark any body fields as required.