Skip to content

Update user

Request

This can only be done by the logged in user.

Path
usernamestringrequired

name that needs to be updated

Body

Update an existent user in the store

idinteger, (int64)
Example:10
usernamestring
Example:"theUser"
firstNamestring
Example:"John"
lastNamestring
Example:"James"
emailstring
Example:"john@email.com"
passwordstring
Example:12345
phonestring
Example:12345
userStatusinteger, (int32)

User Status

Example:1
curl -i -X PUT \
  'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/{username}' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 10,
    "username": "theUser",
    "firstName": "John",
    "lastName": "James",
    "email": "john@email.com",
    "password": 12345,
    "phone": 12345,
    "userStatus": 1
  }'

Responses

successful operation