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 @fileBeispielantwort · 200
{
"code": 0,
"type": "string",
"message": "string"
}#Authentifizierung
petstore_authwrite:petsread:pets#Parameter
petIdinteger (int64)erforderlichpathID of pet to update
additionalMetadatastringqueryAdditional Metadata
#Anfrage-Body
application/octet-stream · Typ: any
#Antworten
successful operation
application/json · Typ: ApiResponse
codeinteger (int32)typestringmessagestringBeispiel
{
"code": 0,
"type": "string",
"message": "string"
}No file uploaded
Pet not found
Unexpected error