user

This can only be done by the logged in user.

post/user

Request

  • Base URL: https://petstore3.swagger.io/api/v3
  • URL: https://petstore3.swagger.io/api/v3/user
  • Auth: none declared

Request body

idinteger
usernamestring
firstNamestring
lastNamestring
emailstring
passwordstring
phonestring
userStatusinteger

User Status

Example request

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

Response

successful operation

idinteger
usernamestring
firstNamestring
lastNamestring
emailstring
passwordstring
phonestring
userStatusinteger

User Status

Example response

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

Changes

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/xml for the response with the status

    • info

      added the success response with the status

    • breaking

      removed the success response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/xml for the response with the status