---
updatedAt: 2025-09-09T20:29:37.000Z
agentTools:
  projectIndex: https://ablo.readme.io/llms.txt
---

# /templates/{templateId}/colors/{templateColorId}/preview-images

Create template color image

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/templates/{templateId}/colors/{templateColorId}/preview-images": {
      "post": {
        "operationId": "TemplatePreviewImageController_create",
        "summary": "",
        "description": "Create template color image",
        "parameters": [
          {
            "name": "templateId",
            "required": true,
            "in": "path",
            "description": "Template ID",
            "schema": {
              "example": "d1b3e4a0-1c5a-4f1a-8f1a-4f1a8f1a8f1a",
              "type": "string"
            }
          },
          {
            "name": "templateColorId",
            "required": true,
            "in": "path",
            "description": "Template Color ID",
            "schema": {
              "example": "d1b3e4a0-1c5a-4f1a-8f1a-4f1a8f1a8f1a",
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {}
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplatePreviewImageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplatePreviewImage"
                }
              }
            }
          }
        },
        "tags": [
          "TemplatePreviewImages"
        ],
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "Ablo API",
    "description": "RESTful API Docs for Ablo",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "TemplatePreviewImages",
      "description": ""
    }
  ],
  "servers": [
    {
      "url": "https://api.ablo.ai/"
    }
  ],
  "components": {
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "TemplatePreviewImage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "d1b3e4a0-1c5a-4f1a-8f1a-4f1a8f1a8f1a"
          },
          "order": {
            "type": "number",
            "example": 4
          },
          "url": {
            "type": "string",
            "example": "https://ablo.ai/images/1.jpg"
          },
          "templateColorId": {
            "type": "string",
            "example": "d1b3e4a0-1c5a-4f1a-8f1a-4f1a8f1a8f1a"
          }
        },
        "required": [
          "id",
          "order",
          "url",
          "templateColorId"
        ]
      },
      "CreateTemplatePreviewImageDto": {
        "type": "object",
        "properties": {
          "order": {
            "type": "number",
            "example": 4
          },
          "image": {
            "type": "string",
            "example": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGySURBVDhPY8ACDIF4BhDfAuJfUHyLkREsBpLDCTiBeDYQ/wPi/zgwSA6kBqQWBYAEDgExNk1wLCnJ/V8KiIFskFoUQ0CmYmhAxv6+Sv9rq0yRxWYBMRiA/IXT2dxcrP9nTnX8v2mdz39mZkZkuX+srJAwAQUOsgQcGxuJ/b9xOeb/uZMR/3l4WDHkoQELDm0UCSYmxv/lJcb/f37O/v/4XuJ/aSmwv7HhW4xAAhRNrEAMBrIyPAyL5rkyONjLgPk/f/5l+P79D5gNAg0tpxgmTr4A5TH8RjEgLESVYcYURwZBQXYQFwPMXXCNISV9L5QHBmADQF5Q5eVlY7CzkQKLggDQfwy1VWYMZqbiYP6OXQ8ZfAO3MPz5AwpvOLgNUogRiKDQnjvT+f//n7lgDApEXlyByMrKihKN7OzM/9et8oJrfnA7AZyAYPJIGKQHkrSBJoESxX+gN/7v3REI1/zuRdp/LU0hbJpBGJT44IATGFWHTh8Lh2v+8Snrv72tNDaNIIyRlBn+/Svk/PcjZzYQ/wPi/xFhatg0gpwNci1GZoKDfz9zDSf22WHNzrCkiwAMDABg6Px1FaG/vwAAAABJRU5ErkJggg==",
            "nullable": false
          }
        },
        "required": [
          "order",
          "image"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```