Skip to main content

Update user information

Update user information.

PUT https://petstore3.swagger.io/api/v3/user/{username}

Examples

cURL
PUT "https://petstore3.swagger.io/api/v3/user/user1" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "api_key: <YOUR_API_KEY>" \
-d '{
"id": 0,
"username": "user1",
"firstName": "string",
"lastName": "string",
"email": "string",
"password": "string",
"phone": "string",
"userStatus": 0
}'

Responses

CodeDescription
200Successful operation
400Invalid user supplied
404User not found
defaultUnexpected error

A successful update returns a 200 code with no response body.

Parameters

Path parameters
NameTypeDescription
usernamestringThe username of the user to update
Request body
NameTypeDescription
bodyUser objectRequired. The User object with updated information.