POST
/pet/{petId}/uploadImageUpload a pet image
Uploads an image for a pet in the store. Send the image as the request body and use the petId path parameter to identify the pet; additionalMetadata can provide extra information about the upload. A 200 response contains the operation result.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The integer identifier of the pet to attach the image to.
additionalMetadatastringoptional
Optional additional information about the image upload.
200Returns an operation result containing a code, message, and type.
codeintegeroptional
messagestringoptional
typestringoptional
400Returned when no file is uploaded.
404Returned when the pet is not found.
defaultUnexpected error
Error handling
A 400 is returned when no file is uploaded. A 404 is returned when the petId path parameter does not identify a pet.