Uploads an image

POST /pet/{petId}/uploadImage

Path parameters

  • petId integer(int64) Required

    ID of pet to update

Query parameters

  • additionalMetadata string

    Additional Metadata

application/octet-stream

Body

string(binary) string(binary)

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • code integer(int32)
    • type string
    • message string
POST /pet/{petId}/uploadImage
curl \
 --request POST '/api/v3/pet/{petId}/uploadImage' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/octet-stream" \
 --data-binary '@file'
Response examples (200)
{
  "code": 42,
  "type": "string",
  "message": "string"
}