PUT
/petReplace a pet in the store
Replaces an existing pet record in the store. Provide name and photoUrls with the pet data, and use status only with an accepted value: available, pending, or sold. The response contains the updated pet details.
Pet details to replace the existing store record. name and photoUrls are required.
idintegeroptional
The pet's integer identifier.
namestringrequired
The pet's name.
categoryobjectoptional
The pet's category, represented by an object with an identifier and name.
photoUrlsarray<string>required
The pet's photo URLs.
tagsarray<object>optional
Tags for the pet, represented as objects with identifiers and names.
statusstringoptional
pet status in the store
200Returns the updated pet object, including its name, photo URLs, and any supplied identifier, category, tags, and status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the supplied pet identifier is invalid.
404Returned when the pet does not exist.
422Returned when the pet data fails validation.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when the supplied pet identifier is invalid. A 404 is returned when the pet does not exist. A 422 is returned when the pet data fails validation; name and photoUrls are required, and status must be available, pending, or sold.