POST
/pet/{petId}/uploadImageUpload a pet image
Uploads an image for a pet identified by petId. Send the image in the request body as an octet stream, and optionally include additionalMetadata.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The int64 identifier of the pet to associate with the uploaded image.
additionalMetadatastringoptional
Optional additional metadata to include with the image upload.
200Returns an upload result object containing a code, message, and type.
codeintegeroptional
messagestringoptional
typestringoptional
400Returned when no file is uploaded.
404Returned when the pet was 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 an existing pet.