Skip to main content
POST
/
pets
/
{id}
/
images
Upload Pet Image
curl --request POST \
  --url https://api.petstoreapi.com/v1/pets/{id}/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form additionalMetadata= \
  --form file='@example-file'
{
  "code": 3,
  "type": "ex dolor",
  "message": "Pecus carcer cometes credo."
}

Authorizations

Authorization
string
header
required

Bearer token authentication using JWT (JSON Web Token). Include the token in the Authorization header as: Authorization: Bearer <token>

Path Parameters

id
string<uuid>
required

Unique identifier for the pet

Body

multipart/form-data
additionalMetadata
string

Additional data to pass to server

Example:

""

file
file

File to upload

Example:

""

Response

Operation successful

Generic API response

message
string

Human-readable message

success
boolean

Whether the operation was successful