Swagger Petstore - OpenAPI 3.0· docs by DocoAPI
v1.0.27
POST/pet/{petId}/uploadImage
operationId: uploadFile

Uploads an image.

Upload image of the pet.

🔒petstore_auth

Parameters

Path Parameters
petIdinteger (int64)required

ID of pet to update

Query Parameters
additionalMetadatastringoptional

Additional Metadata

Request Body optional

application/octet-stream
NameTypeRequiredExample / Values
string (binary)
Example:"string"
Example
"string"

Responses

200 OK — successful operation
400 Bad Request — No file uploaded
404 Not Found — Pet not found
default — Unexpected error

⚡ Try it out