Skip to content
Get started

uploads an image

POST/pet/{petId}/uploadImage

uploads an image

Path ParametersExpand Collapse
petId: number
formatint64
Query ParametersExpand Collapse
additionalMetadata: optional string

Additional Metadata

Body ParametersExpand Collapse
image: file
ReturnsExpand Collapse
code: optional number
formatint32
message: optional string
type: optional string

uploads an image

curl https://petstore3.swagger.io/api/v3/pet/$PET_ID/uploadImage \
    -H 'Content-Type: application/octet-stream' \
    -H "api_key: $PETSTORE_API_KEY" \
    -F 'image=@/path/to/image'
{
  "code": 0,
  "message": "message",
  "type": "type"
}
Returns Examples
{
  "code": 0,
  "message": "message",
  "type": "type"
}