Upload Product Images

Upload one or more images for a product.

Endpoint

POST /api/products/{product_id}/images

Path Parameters

ParameterTypeRequiredDescription
product_idstringYesThe unique identifier for the product

Request Body

Form data with image files.
ParameterTypeRequiredDescription
imagesfile[]YesArray of image files (max 5 files)

Response

Returns the uploaded image URLs.
{
  "product_id": "prod_123456789",
  "images": [
    {
      "id": "img_123456789",
      "url": "https://cdn.devdraft.ai/products/img_123456789.jpg",
      "filename": "product-image.jpg"
    }
  ]
}