1. Pet
Pet Store
  • Store API
    • Start your Apidog journey
    • Pet
      • List Pets
        GET
      • Create Pet
        POST
      • Get Pet
        GET
      • Update Pet
        PUT
      • Delete Pet
        DELETE
      • Upload Pet Image
        POST
    • Chat
      • Pet Care AI Consultation
    • Store
      • Get Store Inventory
      • List all inventories
      • Create Order
      • Get Order
      • Cancel Order
      • Callback Example
    • Payments
      • Pay Order
    • User
      • Create User
      • Update User
      • Get User
      • Delete User Account
      • Create Authentication Token
    • Webhooks
      • Order Status Changed Event
      • Payment Succeeded Event
    • Websocket, Socket.IO & more
      • gRPC API
      • Other protocol API example
      • WebSocket example
      • Socket.IO example
      • Webhook example
      • GraphQL example
      • SSE example
      • SOAP example
    • Schemas
      • Pet
      • User
      • PetCollection
      • OrderPayment
      • Bank Card
      • Order
      • Bank Account
      • ApiResponse
      • Error
  • Admin API
    • Dashboard
      • Get Dashboard Stats
    • User Management
      • List Users
      • Get User Details
      • Update User Status
    • Order Management
      • List All Orders
      • Force Cancel Order
    • Audit Logs
      • Get Audit Log Details
    • Schemas
      • AuditLog
  1. Pet

Upload Pet Image

POST
/pets/{id}/images
Upload a photo for the specified pet. Supports JPEG, PNG, and WebP formats up to 5MB.
Authentication: Requires write:pets scope or Bearer token

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
OAuth 2.0
Authorization Code
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://auth.petstoreapi.com/authorize
Token URL: https://auth.petstoreapi.com/token
Refresh URL: https://auth.petstoreapi.com/refresh
Scopes:
write:pets-Create and update pets
or
Path Params

Body Params multipart/form-data

Responses

🟢201
application/json
Operation successful
Bodyapplication/json

🟠401Unauthorized
🟠404NotFound
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/pets/01936c8f-1234-7000-8000-111111111111/images' \
--header 'Authorization: Bearer <token>' \
--form 'additionalMetadata=""' \
--form 'file=@""'
Response Response Example
201 - Success
{
    "code": 3,
    "type": "ex dolor",
    "message": "Pecus carcer cometes credo."
}
Modified at 2026-05-13 03:16:01
Previous
Delete Pet
Next
Pet Care AI Consultation
Built with