On this page
Uploads an image.
Upload image of the pet.
POST
/pet/{petId}/uploadImageUploads an image.curl -X POST 'https://petstore3.swagger.io/api/v3/pet/0/uploadImage' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/octet-stream' \
--data-binary @fileExample response · 200
{
"code": 0,
"type": "string",
"message": "string"
}#Authentication
petstore_authwrite:petsread:pets#Parameters
petIdinteger (int64)requiredpathID of pet to update
additionalMetadatastringqueryAdditional Metadata
#Request body
application/octet-stream · Type: any
#Responses
successful operation
application/json · Type: ApiResponse
codeinteger (int32)typestringmessagestringExample
{
"code": 0,
"type": "string",
"message": "string"
}No file uploaded
Pet not found
Unexpected error