POST
/pet/{petId}Update a pet using form data
Updates a pet's name or status using form parameters. Supply petId to identify the pet and include name, status, or both to change those values. The update values are sent as query parameters.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The int64 integer 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, photo URLs, category, 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 for invalid input. The petId path parameter must be an int64 integer; the name and status query parameters are optional strings.