Skip to content

Update an existing pet

Request

Security
petstore_auth(Required scopes: write:petsread:pets)
Cookies
cookieParaminteger, (int64)required

Some cookie

Headers
Accept-Languagestring

The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US

Default:"en-AU"
Example:en-US
Bodyrequired

Pet object that needs to be added to the store

categoryobject(Category)

Categories this pet belongs to

namestringrequired

The name given to a pet

Example:"Guru"
photoUrlsstring or integer or null, [ 1 .. 10 ] itemsrequired
Default:[]
One of:

The list of URL to a cute photos featuring pet

[ 1 .. 10 ] items
isString
friendobject(Pet)Recursive
tagsArray of objects, ( 0 .. 100 )(Tag)

Tags attached to the pet

statusstring

Pet status in the store

Default:"pending"
Enum:"available""pending""sold"
petTypestring

Type of a pet

Enum:"cat""dog""bee"
Discriminator
huntingSkillstring or booleanrequired

The measured skill for hunting

Default:"lazy"
Enum:"clueless""lazy""adventurous""aggressive"012
Example:"adventurous"
curl -i -X PUT \
  https://innovario.apishowdown.com/_mock/petstore/pet \
  -H 'Accept-Language: en-US' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -b cookieParam=0 \
  -d '{
    "category": {
      "name": "string",
      "sub": {
        "prop1": "string"
      }
    },
    "name": "Guru",
    "photoUrls": [],
    "friend": {},
    "tags": [
      {
        "name": "string"
      }
    ],
    "status": "available",
    "petType": "cat",
    "huntingSkill": "adventurous"
  }'

Responses

Invalid ID supplied