POST
/pet/{petId}/uploadImageUpload a pet image
Uploads an image for a pet in the store. Supply the pet's petId and send the image as binary data; use additionalMetadata to include optional metadata with the upload.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The int64 identifier of the pet to upload an image for.
additionalMetadatastringoptional
Optional metadata to include with the image upload.
200Returns an upload result object containing a code, type, and message.
codeintegeroptional
typestringoptional
messagestringoptional
400Returned when no file is uploaded.
404Returned when no pet is found with the supplied ID.
defaultUnexpected error
Error handling
A 400 is returned when no file is uploaded. A 404 is returned when no pet is found for the petId path parameter.