POST
/pet/{petId}Update a pet with form data
Updates a pet's name or status using form data sent as query parameters. Supply the petId path parameter to identify the pet, and use name or status for the values to update.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The int64 identifier of the pet to update.
namestringoptional
The updated name for the pet.
statusstringoptional
The updated status for the pet.
200Returns the updated pet object, including its identifier, name, category, photo URLs, tags, and status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the input is invalid.
defaultUnexpected error
Error handling
A 400 is returned when the input is invalid. The petId path parameter must identify the pet to update.