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