v50

latestOpenAPI 3.0.4Apache 2.0raw.githubusercontent.com2025-08-0619622.6 KB
pet

Updates a pet in the store with form data.

Updates a pet resource based on the form data.

post/pet/{petId}

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"
  }
}