uploadPetImage

POST {{baseUrl}}/pet/2/uploadImage

Uploads an image of a pet

Parameters

NameDescription
petId *integer($int64)(path)ID of pet to update
additionalMetadatastring(formData)Additional data to pass to server
filefile(formData)file to upload

Response

CodeDescription
200Successful Operation
415Unsupported media type

Example

json{  "code": 0,  "type": "string",  "message": "string"

Request Body

[{"name"=>"image", "value"=>nil, "datatype"=>"null"}]