Skip to content

Update user resource.

PUT
/user/{username}
curl -X PUT 'https://petstore3.swagger.io/api/v3/user/string' \
-H 'Content-Type: application/json' \
-d '{"email":"john@email.com","firstName":"John","id":10,"lastName":"James","password":"12345","phone":"12345","userStatus":1,"username":"theUser"}'

This can only be done by the logged in user.

username
required
string

Name that need to be deleted

Update an existent user in the store

object
email
string
Example
john@email.com
firstName
string
Example
John
id
integer format: int64
Example
10
lastName
string
Example
James
password
string
Example
12345
phone
string
Example
12345
userStatus

User Status

integer format: int32
Example
1
username
string
Example
theUser

Successful operation

Bad request

User not found

Unexpected error

Suggest an edit to this page