PUT
/petUpdate a pet
Updates an existing pet in the store using the supplied pet details. Include name and photoUrls; status, if provided, must be available, pending, or sold. The response contains the updated pet object.
Pet details to update. name and photoUrls are required.
categoryobjectoptional
The pet category, with an id and name.
idintegeroptional
The pet's int64 identifier.
namestringrequired
The pet's name.
photoUrlsarray<string>required
An array of URLs for photos of the pet.
statusstringoptional
pet status in the store
tagsarray<object>optional
An array of tag objects, each with an id and name.
200Returns the updated pet object, including its identifier, name, photo URLs, status, category, and tags.
categoryobjectoptional
idintegeroptional
namestringrequired
photoUrlsarray<string>required
statusstringoptional
pet status in the store
tagsarray<object>optional
400Returned when the supplied pet ID is invalid.
404Returned when the pet is not found.
422Returned when the pet input fails validation.
defaultUnexpected error
Error handling
A 400 is returned for an invalid pet ID, a 404 when the pet is not found, and a 422 when validation fails. name and photoUrls are required; status, when provided, must be one of available, pending, or sold.