Skip to content
On this page

Uploads an image.

Upload image of the pet.

POST/pet/{petId}/uploadImageUploads an image.
curl -X POST 'https://petstore3.swagger.io/api/v3/pet/0/uploadImage' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @file
Example response · 200
{
  "code": 0,
  "type": "string",
  "message": "string"
}

#Authentication

petstore_authwrite:petsread:pets

#Parameters

petIdinteger (int64)requiredpath

ID of pet to update

additionalMetadatastringquery

Additional Metadata

#Request body

application/octet-stream · Type: any

#Responses

successful operation

application/json · Type: ApiResponse

codeinteger (int32)
typestring
messagestring
Example
{
  "code": 0,
  "type": "string",
  "message": "string"
}