My API
PUT/user/{username}

Update a user's profile

Updates an existing user's profile information by username. Supply the fields you want to change in the request body — all fields are optional. A 400 is returned for invalid input, and a 404 is returned when the user does not exist.

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

User fields to update. All fields are optional.

idintegeroptional
The unique identifier for the user.
usernamestringoptional
The login name for the user account.
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 confirmation that the user has been successfully updated.
400Returned when the request body contains invalid data.
404Returned when no user exists with the given username.
defaultUnexpected error

Error handling

username is required and must identify an existing user. A 400 is returned if the request body contains invalid data. A 404 is returned if no user exists with the given username.