POST
/pet/{petId}Update a pet using form data
Updates a pet record using form values supplied as query parameters. Use petId to identify the pet, and provide name or status to change those values.
- 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, 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.
defaultUnexpected error
Error handling
A 400 is returned when the input is invalid. The petId path parameter is an int64 identifier; the name and status query parameters supply the values to update when provided.