pet

Updates a pet in the store with form data.

Changed on

Updates a pet resource based on the form data.

post/pet/{petId}

Request

  • Base URL: https://petstore3.swagger.io/api/v3
  • URL: https://petstore3.swagger.io/api/v3/pet/{petId}
  • Auth: OAuth 2 (implicit, authorization URL https://petstore3.swagger.io/oauth/authorize, scopes: write:pets, read:pets)

Path parameters

petIdinteger required

ID of pet that needs to be updated

Query parameters

namestring

Name of pet that needs to be updated

statusstring

Status of pet that needs to be updated

Response

successful operation

idinteger
namestring required
photoUrlsstring[] required
status'available' | 'pending' | 'sold'

pet status in the store

Example response

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the success response with the status

    • breaking

      removed the success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status