POST
/pet/{petId}/uploadImageUpload a pet image
Uploads an image for a pet in the store. Send the image as a binary request body, and use additionalMetadata to provide optional metadata.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
petIdintegerrequired
The identifier of the pet to associate with the uploaded image.
additionalMetadatastringoptional
Optional metadata to include with the image upload.
200Returns an object containing the operation code, type, and message.
codeintegeroptional
typestringoptional
messagestringoptional
400Returned when the request contains no uploaded file.
404Returned when the pet to update is not found.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when no file is uploaded, and a 404 when the pet is not found. The petId path parameter must identify the pet to update; provide the image in the binary request body.