## uploads an image

**post** `/pet/{petId}/uploadImage`

uploads an image

### Path Parameters

- `petId: number`

### Query Parameters

- `additionalMetadata: optional string`

  Additional Metadata

### Returns

- `code: optional number`

- `message: optional string`

- `type: optional string`

### Example

```http
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'
```

#### Response

```json
{
  "code": 0,
  "message": "message",
  "type": "type"
}
```
