uploads an image

Securitypetstore_auth
Request
path Parameters
petId
required
integer <int64>

ID of pet to update

Request Body schema: multipart/form-data
additionalMetadata
string

Additional data to pass to server

file
string <binary>

file to upload

Responses
200

successful operation

post/pet/{petId}/uploadImage
Request samples
curl -i -X POST \
  'https://petstore.swagger.io/v2/pet/{petId}/uploadImage' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F additionalMetadata=string \
  -F file=string
Response samples
application/json
{
  • "code": 0,
  • "type": "string",
  • "message": "string"
}