Zum Inhalt springen
Auf dieser Seite

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
Beispielantwort · 200
{
  "code": 0,
  "type": "string",
  "message": "string"
}

#Authentifizierung

petstore_authwrite:petsread:pets

#Parameter

petIdinteger (int64)erforderlichpath

ID of pet to update

additionalMetadatastringquery

Additional Metadata

#Anfrage-Body

application/octet-stream · Typ: any

#Antworten

successful operation

application/json · Typ: ApiResponse

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