POST
/pet/{petId}Update a pet with form data
Updates a pet's name and status using query parameters. Supply petId in the path — name and status are optional query parameters. Only the fields you provide are changed; omitted fields keep their current values.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The unique identifier of the pet to update.
namestringoptional
The new name for the pet. Omit to leave the current name unchanged.
statusstringoptional
The new status for the pet: available, pending, or sold. Omit to leave the current status unchanged.
200Returns the updated pet object with its current field values.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when `petId` is not a valid integer or the request is malformed.
defaultUnexpected error
Error handling
petId must be a valid integer — non-numeric values return a 400. If status is provided, it must be one of available, pending, or sold.