Skip to main content

uploads an image

POST 

/v3/pet/:petId/uploadImage

Request

Path Parameters

    petId int64required

    ID of pet to update

Query Parameters

    additionalMetadata string

    Additional Metadata

Body

    string

Responses

successful operation

Schema
    code int32
    type string
    message string

Authorization: oauth2

name: petstore_authtype: oauth2scopes: write:pets,read:petsflows: {
  "implicit": {
    "authorizationUrl": "https://petstore.swagger.io/oauth/authorize",
    "scopes": {
      "write:pets": "modify pets in your account",
      "read:pets": "read your pets"
    }
  }
}
curl -L -X POST '/v3/pet/:petId/uploadImage' \
-H 'Content-Type: application/octet-stream' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Request Collapse all
Base URL
/v3
Auth
Parameters
— pathrequired
— query
Body
Body
ResponseClear

Click the Send API Request button above and see the response here!