Pet Store
  1. user
Pet Store
  • pet
    • Find pet by ID
      GET
    • Update an existing pet
      PUT
    • Add a new pet to the store
      POST
    • Finds Pets by status
      GET
    • Finds Pets by tags
      GET
    • Updates a pet in the store with form data
      POST
    • Deletes a pet
      DELETE
    • uploads an image
      POST
  • store
    • Returns pet inventories by status
      GET
    • Place an order for a pet
      POST
    • Find purchase order by ID
      GET
    • Delete purchase order by ID
      DELETE
  • user
    • Create user
      POST
    • Creates list of users with given input array
      POST
    • Logs user into the system
      GET
    • Logs out current logged in user session
      GET
    • Get user by user name
      GET
    • Update user
      PUT
    • Delete user
      DELETE
  1. user

Update user

PUT
/user/{username}
user
This can only be done by the logged in user.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/user/'
Response Response Example
{}

Request

Path Params
username
string 
required
name that need to be deleted
Body Params application/x-www-form-urlencoded
id
integer 
optional
Example:
10
username
string 
optional
Example:
theUser
firstName
string 
optional
Example:
John
lastName
string 
optional
Example:
James
email
string 
optional
Example:
john@email.com
password
string 
optional
Example:
12345
phone
string 
optional
Example:
12345
userStatus
integer 
optional
User Status
Example:
1

Responses

🟢200successful operation
application/json
Body
object {0}
Previous
Get user by user name
Next
Delete user
Built with