POST
/pet/{petId}Update a pet with form data
Updates a pet's name or store status using form data supplied as query parameters. Use petId to identify the pet and provide name, status, or both to change the corresponding values. The response contains the pet resource.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The integer identifier of the pet to update.
namestringoptional
The new name for the pet.
statusstringoptional
The new store status for the pet.
200Returns the pet object with its current details.
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 identifies the pet to update; name and status are optional query parameters.