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 name, status, or both to change the corresponding values.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The 64-bit integer identifier of the pet to update.
namestringoptional
The replacement name for the pet.
statusstringoptional
The replacement store status for the pet.
200Returns the updated pet object with 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 pet identifier or update input is invalid.
defaultReturned when an unexpected error occurs.
Error handling
petId must be a valid 64-bit integer, and the request must contain valid update values. Invalid input returns a 400; status is accepted as a string parameter, but this operation does not define an enum constraint for it.