Axerity

Upload an image

Upload an image of the pet. The body is the raw image bytes.

POST https://petstore3.swagger.io/api/v3/pet/{petId}/uploadImage

Path parameters

petId integer required

The id of the pet to update.

Query parameters

additionalMetadata string

Extra metadata to attach to the upload.

Body

The request body is the raw image (application/octet-stream).

Returns

code integer

The HTTP status code.

type string

The result type.

message string

A message describing the result.

Request
curl -X POST "https://petstore3.swagger.io/api/v3/pet/10/uploadImage" \  -H "Content-Type: application/octet-stream" \  --data-binary @doggie.png
Response
{ "code": 200, "type": "success", "message": "Image uploaded" }