Skip to content
ogygia playground
PUT /pet

Update an existing pet

Update an existing pet by Id.

Security

  • petstore_auth write:pets, read:pets

Request bodyrequired

Pet object that needs to be updated in the store

application/json

  • id integer · int64
  • name string required
  • category Category
  • photoUrls array required
    array of string
  • tags array
    array of
  • status string

    pet status in the store

    string "available""pending""sold"

Responses

  • 200 Successful operation application/json
  • 400 Invalid ID supplied
  • 404 Pet not found