# uploads an image

`POST /pet/{petId}/uploadImage`

Operation ID: `uploadFile`

Tags: `pet`

OpenAPI specification: https://redocly.com/_spec/docs/openapi/petstore.json

## Servers

- `https://petstore.swagger.io/v2`: Default server
- `https://petstore.swagger.io/sandbox`: Sandbox server

## Authentication

This operation requires:

- `petstore_auth` (OAuth 2.0: implicit (authorization URL http://petstore.swagger.io/api/oauth/dialog), scopes: `write:pets`, `read:pets`)

## Parameters

### Path parameters

- `petId` (integer<int64>, required)
  ID of pet to update

## Request body

### Content type: `application/octet-stream`

Schema: `string<binary>`

## Responses

### 200

successful operation

#### Content type: `application/json`

Schema: `object`

ApiResponse

- `code` (integer<int32>)
- `type` (string)
- `message` (string)
