POST
/pet/{petId}Update a pet with form data
Updates a pet's details using form data supplied as query parameters. Provide the petId and include name or status to change those values. The response contains the 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 new name for the pet.
statusstringoptional
The new status for the pet.
200Returns the 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 supplied input is invalid.
defaultUnexpected error
Error handling
A 400 is returned when the input is invalid. The petId path parameter is an int64 identifier; name and status are query parameters that accept string values.