POST
/pet/{petId}/uploadImageUpload a pet image
Uploads an image for a specific pet in the store. Use petId to identify the pet, send the image as binary request content, and optionally provide additionalMetadata.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The 64-bit integer identifier of the pet whose image you want to upload.
additionalMetadatastringoptional
Optional metadata describing the uploaded image.
200Returns an upload result containing a numeric code, result type, and message.
codeintegeroptional
typestringoptional
messagestringoptional
400Returned when no file is uploaded.
404Returned when no pet exists with the supplied `petId`.
defaultReturned when an unexpected error occurs.
Error handling
petId must be a valid 64-bit integer identifying an existing pet, and the request must include a binary file. Omitting the file returns a 400, while an unknown pet returns a 404.