PUT/user/{username}

Replace a user record

Replaces the user record identified by username with the supplied user properties. Provide the properties for the user update; only the authenticated user can perform this operation.

1 parameter · 8 body fields
usernamestringrequired

The username of the user record to update.

User properties for the update, accepted as JSON, form data, or XML.

emailstringoptional

The user's email address.

firstNamestringoptional

The user's first name.

idintegeroptional

The user's integer identifier.

lastNamestringoptional

The user's last name.

passwordstringoptional

The user's password.

phonestringoptional

The user's phone number.

userStatusintegeroptional

User Status

usernamestringoptional

The user's username.

4 status codes
200Confirms that the user update completed.
400Returned when the update request is invalid.
404Returned when the user is not found.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when the update request is invalid. A 404 is returned when no user matches the username path parameter. No body fields are marked as required; include the user properties you want to update.