Skip to content

Updated user

Request

This can only be done by the logged in user.

Path
usernamestringrequired

name that need to be updated

Bodyapplication/jsonrequired

Updated user object

One of:
petPettie (object) or Tag (object)
One of:
usernamestring, >= 4 characters

User supplied username

Example:"John78"
firstNamestring, non-empty

User first name

Example:"John"
lastNamestring, non-empty

User last name

Example:"Smith"
emailstring, (email)

User email address

Example:"john.smith@example.com"
passwordstring, (password), >= 8 characters/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

User password, MUST contain a mix of upper and lower case letters, as well as digits

Example:"drowssaP123"
phonestring/^\+(?:[0-9]-?){6,14}[0-9]$/required

User phone number in international format

Example:"+1-202-555-0192"
userStatusinteger, (int32)

User status

Value:10
imagestring, base64

User image

addressesArray of items, <= 10 characters, >= 0 items
curl -i -X PUT \
  'https://innovario.apishowdown.com/_mock/petstore/user/{username}' \
  -H 'Content-Type: application/json' \
  -d '{
    "pet": {
      "category": {
        "name": "string",
        "sub": {
          "prop1": "string"
        }
      },
      "name": "Guru",
      "photoUrls": [],
      "friend": {},
      "tags": [
        {
          "name": "string"
        }
      ],
      "status": "available",
      "petType": "cat",
      "huntingSkill": "adventurous"
    },
    "username": "John78",
    "firstName": "John",
    "lastName": "Smith",
    "email": "john.smith@example.com",
    "password": "drowssaP123",
    "phone": "+1-202-555-0192",
    "userStatus": 10,
    "image": "string",
    "addresses": [
      {
        "city": "string",
        "country": "string",
        "street": "string"
      },
      0
    ]
  }'

Responses

User is updated successfully

Bodyapplication/json
One of:
idinteger, (int64)(Id)read-only
petPettie (object) or Tag (object)
One of:
usernamestring, >= 4 characters

User supplied username

Example:"John78"
firstNamestring, non-empty

User first name

Example:"John"
lastNamestring, non-empty

User last name

Example:"Smith"
emailstring, (email)

User email address

Example:"john.smith@example.com"
passwordstring, (password), >= 8 characters/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

User password, MUST contain a mix of upper and lower case letters, as well as digits

Example:"drowssaP123"
phonestring/^\+(?:[0-9]-?){6,14}[0-9]$/required

User phone number in international format

Example:"+1-202-555-0192"
userStatusinteger, (int32)

User status

Value:10
imagestring, base64

User image

addressesArray of items, <= 10 characters, >= 0 items
Response
{ "id": 0, "pet": { "id": 0, "category": {}, "name": "Guru", "photoUrls": [], "friend": {}, "tags": [], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 10, "image": "string", "addresses": [ {}, 0 ] }