Skip to content

Uploads an image.

POST
/pet/{petId}/uploadImage
curl -X POST 'https://petstore3.swagger.io/api/v3/pet/0/uploadImage?additionalMetadata=string' \
-H 'Content-Type: application/json' \
-d '"binary"'

Upload image of the pet.

petId
required
integer format: int64

ID of pet to update

additionalMetadata
string

Additional Metadata

Media type application/octet-stream
string format: binary

Successful operation

Media type application/json
object
code
integer format: int32
message
string
type
string
Example generated
{
"code": 1,
"message": "example",
"type": "example"
}

No file uploaded

Pet not found

Unexpected error

Suggest an edit to this page