> ## Documentation Index
> Fetch the complete documentation index at: https://devdraft.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload images for a product

> Adds new images to an existing product.
    
This endpoint allows you to upload additional images for a product that already exists.

## Use Cases
- Add more product images
- Update product gallery
- Enhance product presentation

## Supported Image Formats
- JPEG/JPG
- PNG
- WebP
- Maximum 10 images per upload
- Maximum file size: 5MB per image

## Example Request (multipart/form-data)
```
images: [file1.jpg, file2.jpg]  // Up to 10 images
```

## Notes
- Images are appended to existing product images
- Total images per product cannot exceed 10
- Images are automatically optimized and resized



## OpenAPI

````yaml /swagger.yml post /api/v0/products/{id}/images
openapi: 3.0.0
info:
  title: Devdraft AI Payment & Business Management API
  description: >-

    A comprehensive payment processing and business management API that enables
    seamless integration of cryptocurrency and traditional payment methods.
        
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.devdraft.ai
    description: Production Server
security: []
tags: []
paths:
  /api/v0/products/{id}/images:
    post:
      tags:
        - Products
      summary: Upload images for a product
      description: >-
        Adds new images to an existing product.
            
        This endpoint allows you to upload additional images for a product that
        already exists.


        ## Use Cases

        - Add more product images

        - Update product gallery

        - Enhance product presentation


        ## Supported Image Formats

        - JPEG/JPG

        - PNG

        - WebP

        - Maximum 10 images per upload

        - Maximum file size: 5MB per image


        ## Example Request (multipart/form-data)

        ```

        images: [file1.jpg, file2.jpg]  // Up to 10 images

        ```


        ## Notes

        - Images are appended to existing product images

        - Total images per product cannot exceed 10

        - Images are automatically optimized and resized
      operationId: ProductController_uploadImage
      parameters:
        - name: id
          required: true
          in: path
          description: Product ID
          schema:
            type: string
      responses:
        '201':
          description: The images have been successfully uploaded.
        '401':
          description: Unauthorized - Invalid API credentials
        '404':
          description: Product not found.
        '413':
          description: Payload Too Large - Image files too large
      security:
        - x-client-secret: []
        - x-client-key: []
components:
  securitySchemes:
    x-client-secret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Your secret API key. Keep this secure and never expose it in client-side
        code.
    x-client-key:
      type: apiKey
      in: header
      name: x-client-key
      description: Your unique client API key. Obtain this from your Devdraft AI dashboard.

````