POST
/pet/{petId}Update a pet with form data
Updates a pet's name or status using form-style query parameters. Use the petId path parameter to identify the pet and provide name or status for the values to update. The response returns the pet record.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The 64-bit integer identifier of the pet to update.
namestringoptional
The pet's name to set.
statusstringoptional
The pet's status to set.
200Returns the pet record, including its identifier, name, category, photo URLs, tags, and status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the supplied update input is invalid.
defaultReturned when an unexpected error occurs.
Error handling
The petId path parameter must be a 64-bit integer; name and status are query parameters for the values to update. Invalid input returns a 400.