Logo
1 API Documentation

uploads an image

POST {{baseUrl}}/pet/:petId/uploadImage

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "code": 69692684, "type": "laborum qui Excepteur", "message": "qui deserunt velit" }



Curl
curl -X POST 'https://petstore.swagger.io/v2/pet/:petId/uploadImage' -H 'Content-Type: multipart/form-data' -H 'Accept: application/json' -F '{"name"=>"additionalMetadata", "value"=>"dolore nisi nostrud", "datatype"=>"string"}=' -F '{"name"=>"file", "value"=>nil, "datatype"=>"null"}='

ENDPOINTS