POST
/pet/{petId}Update a pet with form data
Updates a pet's name or store status using form-style query parameters. Supply petId and include the name, status, or both values that you want to change. Returns the updated pet object.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
petIdintegerrequired
The integer identifier of the pet to update.
namestringoptional
The replacement name for the pet. Defaults to the existing name when omitted.
statusstringoptional
The replacement store status for the pet. Defaults to the existing status when omitted.
200Returns the updated pet object, including its identifier, name, category, image URLs, tags, and store status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the update input is invalid.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when the supplied petId, name, or status value is invalid. status should identify the pet's new store state; use the store's available, pending, or sold values.