---
title: "uploads an image"
method: POST
path: "/pet/{petId}/uploadImage"
tags: ["pet"]
---

# uploads an image

`POST /pet/{petId}/uploadImage`

## Request

- Base URL: `/v3` (relative, and the document’s source URL is not known)
- URL: `/v3/pet/{petId}/uploadImage`
- Auth: OAuth 2
  - Implicit: `https://petstore.swagger.io/oauth/authorize`
  - Scopes: `write:pets`, `read:pets`

## Path parameters

- `petId` integer, required

## Query parameters

- `additionalMetadata` string

## Request body `application/octet-stream`

- string, binary

## Response `200`

successful operation

- ApiResponse
  - `code` integer
  - `type` string
  - `message` string

---

[API](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0.md) - [All operations](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/revisions/4f1f6cb5a0cb?raw)
