# uploads an image

`POST /pet/{petId}/uploadImage`

Operation ID: `uploadFile`

Tags: `pet`

OpenAPI specification: https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml

## Servers

- `https://petstore.swagger.io/v2`: Default server
- `https://petstore.swagger.io/sandbox`: Sandbox server
- `http://127.0.0.1:4010`: Prism Mock API (local)

## 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)
