Skip to content
Blume is now publicly available.
Blume
Esc
navigateopen⌘Jpreview

Updates a pet in the store with form data.

Updates a pet resource based on the form data.

POST/pet/{petId}
Path parameters
petIdinteger<int64>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
Responses
200successful operation
idinteger<int64>
namestringrequired
categoryCategory
Show properties
idinteger<int64>
namestring
photoUrlsstring[]required
tagsTag[]
Show properties
Array of Tag
idinteger<int64>
namestring
statusstring
pet status in the store
Allowed:availablependingsold
400Invalid input
defaultUnexpected error
Request
curl -X POST "/api/v3/pet/0"
Response
{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "string"
  ],
  "tags": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "status": "available"
}