tags:
  - pet
summary: Update an existing pet
description: ""
operationId: updatePet
consumes:
  - application/json
  - application/xml
produces:
  - application/json
  - application/xml
parameters:
  - in: body
    name: body
    description: Pet object that needs to be added to the store
    required: false
    schema:
      $ref: "#/definitions/Pet"
responses:
  "405":
    description: Validation exception
  "404":
    description: Pet not found
  "400":
    description: Invalid ID supplied
security:
  - petstore_auth:
    - write_pets
    - read_pets
