Skip to content
On this page

Update user resource.

This can only be done by the logged in user.

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

#Authentication

No authentication needed.

#Parameters

usernamestringrequiredpath

name that need to be deleted

#Request body

Update an existent user in the store

application/json application/xml application/x-www-form-urlencoded · Type: User

idinteger (int64)
usernamestring
firstNamestring
lastNamestring
emailstring
passwordstring
phonestring
userStatusinteger (int32)

User Status

{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}

#Responses

successful operation