API Docs | Templates | Tajima Software Solutions Inc.

With the /templates endpoint user can manage the database templates.

GET /api/Templates/GetFilteredTemplates Get all templates that match the specified filters.
Request Example
    /api/Templates/GetFilteredTemplates?location=Test&productCategory=Product Cat 1&language=English&silhouette=Silhouette&team=Team&style=Style
            location and productCategory parameters are required, provide an empty value if you need all templates though.
                
Response Example
    [
      {
        "TemplatePreviewURL": "string",
        "ProductCategoryName": "string",
        "TemplateColours": [
          {
            "Name": "string",
            "Code": "string",
            "Red": 0,
            "Green": 0,
            "Blue": 0
          }
        ],
        "TemplateFonts": [
          {
            "FontName": "string",
            "SpecialCharacters": "string",
            "UpperCase": true,
            "LowerCase": true,
            "IncludesNumbers": true,
            "IsRaised": true,
            "MinCharacters": 0,
            "MaxCharacters": 0,
            "FontType": "string"
          }
        ],
        "TemplateElements": [
          {
            "Text": "string",
            "TextColour": "string",
            "FontOverride": "string",
            "HeightOverride": 0,
            "ElementName": "string",
            "IsText": true,
            "ElementFonts": [
              {
                "FontName": "string",
                "SpecialCharacters": "string",
                "UpperCase": true,
                "LowerCase": true,
                "IncludesNumbers": true,
                "IsRaised": true,
                "MinCharacters": 0,
                "MaxCharacters": 0,
                "FontType": "string"
              }
            ],
            "ElementColours": [
              {
                "Name": "string",
                "Code": "string",
                "Red": 0,
                "Green": 0,
                "Blue": 0
              }
            ],
            "DefaultElementsFont": {},
            "DefaultElementsColor": {},
            "AvailableDesigns": [
              {
                "DesignName": "string"
              }
            ]
          }
        ],
        "Name": "string",
        "Filename": "string",
        "OrderType": "string",
        "Language": "string",
        "Team": "string",
        "Silhouette": "string",
        "Style": "string",
        "PricingSKU": "string"
      }
    ]
                
GET /api/Templates/GetTemplateInfo/{id} Get information of a specific template.
Request Example
    /api/Templates/GetTemplateInfo/TempName?location=LocationName
            {id} is required to specify the template and matches the template name.
            location parameter is optional, it is used to update template fonts in the response by font rules.
                
Response Example
                  
    {
      "TemplatePreviewURL": "string",
      "ProductCategoryName": "string",
      "TemplateColours": [
        {
          "Name": "string",
          "Code": "string",
          "Red": 0,
          "Green": 0,
          "Blue": 0
        }
      ],
      "TemplateFonts": [
        {
          "FontName": "string",
          "SpecialCharacters": "string",
          "UpperCase": true,
          "LowerCase": true,
          "IncludesNumbers": true,
          "MinCharacters": 0,
          "MaxCharacters": 0,
          "FontType": "string"
        }
      ],
      "TemplateElements": [
        {
          "Text": "string",
          "TextColour": "string",
          "FontOverride": "string",
          "HeightOverride": 0,
          "ElementName": "string",
          "IsText": true,
          "ElementFonts": [
            {
              "FontName": "string",
              "SpecialCharacters": "string",
              "UpperCase": true,
              "LowerCase": true,
              "IncludesNumbers": true,
              "MinCharacters": 0,
              "MaxCharacters": 0,
              "FontType": "string"
            }
          ],
          "ElementColours": [
            {
              "Name": "string",
              "Code": "string",
              "Red": 0,
              "Green": 0,
              "Blue": 0
            }
          ],
          "DefaultElementsFont": {},
          "DefaultElementsColor": {},
          "AvailableDesigns": [
            {
              "DesignName": "string"
            }
          ]
        }
      ],
      "Name": "string",
      "Filename": "string",
      "OrderType": "string",
      "Language": "string",
      "Team": "string",
      "Silhouette": "string",
      "Style": "string",
      "PricingSKU": "string"
    }
                
GET /api/Templates/GetThumbnail Get a template as image url.
Request Example
    /api/Templates/GetThumbnail?id=TemplateCode&threadPalette=threadPaletteName
            id is required to specify the template and matches the template name.
            threadPalette is optional.
                
Response Example
            Returns a string, which is a url to the template image.
    .../CachedTemplates/.../TempName.png
                
GET /api/Templates/ListTemplates Get template information for all templates.
Request Example
    /api/Templates/ListTemplates/
                
Response Example
                  
[
    {
        "TemplatePreviewURL": "string",
        "Code": "string",
        "ProductCategoryName": "string",
        "TemplateColours": [
            {
                "Name": "string",
                "Code": "string",
                "Red": 0,
                "Green": 0,
                "Blue": 0
            }
        ],
        "TemplateFonts": [
            {
                "FontName": "string",
                "SpecialCharacters": "string",
                "UpperCase": true,
                "LowerCase": true,
                "IncludesNumbers": true,
                "MinCharacters": 1,
                "MaxCharacters": 10,
                "FontType": "string"
            }
        ],
        "TemplateElements": [
            {
                "Text": "string",
                "TextColour": "string",
                "FontOverride": "string",
                "HeightOverride": 1,
                "ElementName": "string",
                "IsText": true,
                "ElementFonts": [
					"FontName": "string",
				    "SpecialCharacters": "string",
				    "UpperCase": true,
				    "LowerCase": true,
				    "IncludesNumbers": true,
				    "MinCharacters": 0,
				    "MaxCharacters": 0,
				    "FontType": "string"
				],
                "ElementColours": [
					"Name": "string",
				    "Code": "string",
				    "Red": 0,
				    "Green": 0,
				    "Blue": 0
				],
                "DefaultElementsFont": {},
                "DefaultElementsColor": {},
                "AvailableDesigns": [
					"DesignName": "string"
				]
            }
        ],
        "Name": "string",
        "Filename": "string",
        "OrderType": "string",
        "Language": "string",
        "Team": "string",
        "Silhouette": "string",
        "Style": "string",
        "PricingSKU": "string",
        "PrimaryColour": "string",
        "SecondaryColour": "string"
    }
]
                
GET /api/Templates/ListElements/{id} Get elements information of a specified template.
Request Example
    /api/Templates/ListElements/TemplateCode
            {id} is required to specify the template and matches the template code.
                
Response Example
                  
[
    {
        "ElementName": "string",
        "IsText": true,
        "ElementFont": "string",
        "IsMultiColor": false,
        "DefaultText": "string",
        "DefaultColorNames": [
            "string"
        ],
        "DefaultColoreelSwatches": [
            "string" (e.g. #832B1A (Coloreel Medium))
        ],
        "AllowedCharacters": [
            "ÿ",
            "î",
            "Ý",
            "Ì"
        ],
        "DesignColours": [],
        "HasStroke": false,
        "FileNotFound": false,
        "ExceptionMessage": null,
        "DesignFile": null,
        "Design": null,
        "DefaultEmbFont": {
            "IsMonogram": false,
            "IsMultiColor": false,
            "Name": "string",
            "NumChar": 0
        },
        "DefaultColor": {
            "Name": "string",
            "Code": "string",
            "Red": 0,
            "Green": 0,
            "Blue": 0
        }
    }
]
                
GET /api/Templates/Render Get a template as a byte array image.
Request Example
            
    /api/Templates/Render?id=TemplateCode&threadPalette=threadPaletteName
            id is required to specify the template and may match the template name, filename or template code.
            threadPalette is optional.
                
Response Example
                  
    {
        "Content": "[]",
        "ContentEncoding": null,
        "ContentType": "application/json"
    }
                
GET /api/Templates/RenderPNG Get a template as image.
Request Example
    /api/Templates/RenderPNG?id=TemplateCode&threadPalette=threadPaletteName
            {id} is required to specify the template and may match the template name, filename or template code.
                
Response Example
    Returns an image.
        
GET /api/Templates/GetColors/{id} Get all the colors used in a template.
Request Example
    /api/Designs/GetColors/TemplateCode
            {id} is required to specify the template and matches the template code.
            
Response Example
            [
                {
                    "$id": "1",
                    "ElementName": "J2Out",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "2",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Fill"
                        }
                    ]
                },
                {
                    "$id": "3",
                    "ElementName": "2Line-2",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "4",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                },
                {
                    "$id": "5",
                    "ElementName": "2Line-1",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "6",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                },
                {
                    "$id": "7",
                    "ElementName": "1Line-1",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "8",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                },
                {
                    "$id": "9",
                    "ElementName": "3Line-1",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "10",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                },
                {
                    "$id": "11",
                    "ElementName": "3Line-2",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "12",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                },
                {
                    "$id": "13",
                    "ElementName": "3Line-3",
                    "IsHidden": false,
                    "Opacity": 1.0,
                    "Colors": [
                        {
                            "$id": "14",
                            "Name": null,
                            "Red": 0,
                            "Green": 0,
                            "Blue": 0,
                            "Hex": "#000000",
                            "Usage": "Stroke"
                        }
                    ]
                }
            ]
        
POST /api/Templates/TemplatePreviewByFileName
Model Request Example
    /api/Templates/TemplatePreviewByFileName?file=filename
            File parameter is required to specify the file to get the preview, this should match an existing filename on company's templates
            
Response Example
    Returns a base64 encoded string of the preview
    {
        "bytes":"......",
        "error":""
    }
            
POST /api/Templates/Create
Model Request Example
            
            1. Request Content using type multipart/form-data with following keys
    
    File - (Required) The template file
    OrderType - (Required) string, one of allowed oredr types
    Name - (Optional) Name to use for the template, if not provided it will be the same as the file name
    Code - (Optional) Code to use for the template, if not provided it will be the same as Name
    ReplaceFile - (Optional) true/false: defines the bahavior  in case a template file with the same name already exists in the company's templates folder. Default is true
    MinScaleFactor - (Optional) number
    MaxScaleFactor - (Optional) number
    ImageOffsetX  - (Optional) number
    ImageOffsetY - (Optional) number
    TemplateXOriginOffset - (Optional) number
    TemplateYOriginOffset - (Optional) number
    SortOrder - (Optional) number
    RotationAngle - (Optional) number
    PreviewRotationAngle - (Optional) number
    PricingSKU - (Optional) string
    Origin - (Optional) string
    ProductCategory - (Optional) string - It will be set only if a product category with that name exists in the database
    DefaultProduct - (Optional) string- It will be set only if a product  with that name exists in the database
    TemplateSize - (Optional) string- It will be set only if a template size with that name exists in the database
    PrinterProfileXml - (Optional) string
    Description - (Optional) string
    Language - (Optional) string
    TemplateMessage - (Optional) string - (Legacy) Message on the embroidery machine panel when a design is loaded
    BeforeSewingMessage - (Optional) string - Message on the embroidery machine panel when a design is loaded
    AfterSewingMessage - (Optional) string - Message on the embroidery machine panel when a design has completed sewing
    IsUseConsistentCompression - (Optional) true/false
    IsDisableTextHeightMatching - (Optional) true/false
    IsAllColors - (Optional) true/false
    IsAllDesigns - (Optional) true/false
    TemplateCategories - (Optional) - Comma separated category names, only existing in the database will be inserted
    TemplateKeywords - (Optional) - Comma separated keywords
    TemplateLocations - (Optional) - Comma separated locations
    TemplateColours - (Optional) - Comma separated colour names or codes, only existing in the database will be inserted
    TemplateFonts - (Optional) - Comma separated font names or PulseFonts, only existing in the database will be inserted

            2. Using Json object

{
    "File" : "string" (Required - The template file),
    "FileFormat" : "string" (Required only if the File paramter is in base64 string. Example - .PXF),
    "OrderType" :  "string" (Required - one of allowed oredr types),
    "Name" : "string" (Optional - Name to use for the template, if not provided it will be the same as the file name),
    "Code" : "string" (Optional - Code to use for the template, if not provided it will be the same as Name),
    "ReplaceFile" : "string" (Optional - true/false: defines the bahavior  in case a template file with the same name already exists in the company's templates folder. Default is true),
    "MinScaleFactor" : number (Optional),
    "MaxScaleFactor" : number (Optional),
    "ImageOffsetX" : number (Optional),
    "ImageOffsetY" : number (Optional),
    "TemplateXOriginOffset" : number (Optional),
    "TemplateYOriginOffset" : number (Optional),
    "SortOrder" : number (Optional),
    "RotationAngle" : number (Optional),
    "PreviewRotationAngle" : number (Optional),
    "PricingSKU" : "string" (Optional),
    "Origin" : "string" (Optional),
    "ProductCategory" : "string" (Optional - It will be set only if a product category with that name exists in the database),
    "DefaultProduct" : "string" (Optional- It will be set only if a product  with that name exists in the database),
    "TemplateSize" : "string" (Optional - It will be set only if a template size with that name exists in the database),
    "PrinterProfileXml" : "string" (Optional),
    "Description" : "string" (Optional),
    "Language" : "string" (Optional),
    "TemplateMessage" : "string" (Optional - Legacy Message on the embroidery machine panel when a design is loaded),
    "BeforeSewingMessage" : "string" (Optional - Message on the embroidery machine panel when a design is loaded),
    "AfterSewingMessage" : "string" (Optional - Message on the embroidery machine panel when a design has completed sewing),
    "IsUseConsistentCompression" : "string" (Optional - true/false),
    "IsDisableTextHeightMatching" : "string" (Optional - true/false),
    "IsAllColors" : "string" (Optional - true/false),
    "IsAllDesigns" : "string" (Optional - true/false),
    "TemplateCategories" : "string" (Optional - Comma separated category names, only existing in the database will be inserted),
    "TemplateKeywords" : "string" (Optional - Comma separated keywords),
    "TemplateLocations" : "string" (Optional - Comma separated locations),
    "TemplateColours" : "string" (Optional - Comma separated colour names or codes, only existing in the database will be inserted),
    "TemplateFonts" : "string" (Optional - Comma separated font names or PulseFonts, only existing in the database will be inserted)
}

Response Example
                
    If the operation is successful an empty response will be returned with status code 200
    Otherwise an error will be returned with status code 409
PATCH /api/Templates/Update Update a template.
Model Request Example
    /api/Templates/Update?Name=templateName
            Name parameter is required to specify the template to update
    
            1. Request Content using type multipart/form-data with following keys
            All keys are optional and only provided values will be updated
    
    File - The template file
    OrderType - string, one of allowed oredr types
    NewName - New Name to use for the template
    Code - New Code to use for the template
    ReplaceFile - (Optional) true/false, indicate if the action will be allowed in case a file is uploaded and a template file with the same name already exists in the company's templates folder. Default is true
    MinScaleFactor - number
    MaxScaleFactor - number
    ImageOffsetX  - number
    ImageOffsetY - number
    TemplateXOriginOffset - number
    TemplateYOriginOffset - number
    SortOrder - number
    RotationAngle - number
    PreviewRotationAngle - number
    PricingSKU - string
    Origin - string
    ProductCategory - string - It will be set only if a product category with that name exists in the database
    DefaultProduct - string- It will be set only if a product  with that name exists in the database
    TemplateSize - string- It will be set only if a template size with that name exists in the database
    PrinterProfileXml - string
    Description - string
    Language - string
    TemplateMessage - (Optional) string - (Legacy) Message on the embroidery machine panel when a design is loaded
    BeforeSewingMessage - (Optional) string - Message on the embroidery machine panel when a design is loaded
    AfterSewingMessage - (Optional) string - Message on the embroidery machine panel when a design has completed sewing
    IsUseConsistentCompression - true/false
    IsDisableTextHeightMatching - true/false
    IsAllColors - true/false
    IsAllDesigns - true/false
    TemplateCategories - Comma separated category names, only existing in the database will be inserted, if provided they fully override existing if any
    TemplateKeywords - Comma separated keywords, if provided they fully override existing if any
    TemplateLocations - Comma separated locations, if provided they fully override existing if any
    TemplateColours - Comma separated colour names or codes, only existing in the database will be inserted, if provided they fully override existing if any
    TemplateFonts - Comma separated font names or PulseFonts, only existing in the database will be inserted, if provided they fully override existing if any
    RemoveExistingFiles - true/false, indicate if the previous template file and cached preview will be deleted in case of a file upload (this is done only if there are no other templates that use this file). Default is false

            2. Using Json object

{
    "File" : "string" (Optional - The template file),
    "FileFormat" : "string" (Required only if the File paramter is in base64 string. Example - .PXF),
    "OrderType" :  "string" (Optional - one of allowed oredr types),
    "Name" : "string" (Optional),
    "Code" : "string" (Optional - Code to use for the template, if not provided it will be the same as Name),
    "ReplaceFile" : "string" (Optional - true/false: defines the bahavior  in case a template file with the same name already exists in the company's templates folder. Default is true),
    "MinScaleFactor" : number (Optional),
    "MaxScaleFactor" : number (Optional),
    "ImageOffsetX"  : number (Optional),
    "ImageOffsetY" : number (Optional),
    "TemplateXOriginOffset" : number (Optional),
    "TemplateYOriginOffset" : number (Optional),
    "SortOrder" : number (Optional),
    "RotationAngle" : number (Optional),
    "PreviewRotationAngle" : number (Optional),
    "PricingSKU" : "string" (Optional),
    "Origin" : "string" (Optional),
    "ProductCategory" : "string" (Optional - It will be set only if a product category with that name exists in the database),
    "DefaultProduct" : "string" (Optional- It will be set only if a product  with that name exists in the database),
    "TemplateSize" : "string" (Optional - It will be set only if a template size with that name exists in the database),
    "PrinterProfileXml" : "string" (Optional),
    "Description" : "string" (Optional),
    "Language" : "string" (Optional),
    "TemplateMessage" : "string" (Optional - Legacy Message on the embroidery machine panel when a design is loaded),
    "BeforeSewingMessage" : "string" (Optional - Message on the embroidery machine panel when a design is loaded),
    "AfterSewingMessage" : "string" (Optional - Message on the embroidery machine panel when a design has completed sewing),
    "IsUseConsistentCompression" : "string" (Optional - true/false),
    "IsDisableTextHeightMatching" : "string" (Optional - true/false),
    "IsAllColors" : "string" (Optional - true/false),
    "IsAllDesigns" : "string" (Optional - true/false),
    "TemplateCategories" : "string" (Optional - Comma separated category names, only existing in the database will be inserted),
    "TemplateKeywords" : "string" (Optional - Comma separated keywords),
    "TemplateLocations" : "string" (Optional - Comma separated locations),
    "TemplateColours" : "string" (Optional - Comma separated colour names or codes, only existing in the database will be inserted),
    "TemplateFonts" : "string" (Optional - Comma separated font names or PulseFonts, only existing in the database will be inserted),
    "RemoveExistingFiles" : "string" (Optional - true/false, indicate if the previous template file and cached preview will be deleted in case of a file upload. This is done only if there are no other templates that use this file. Default is false)
}

Response Example
    If the operation is successful an empty response will be returned with status code 200
    Otherwise an error will be returned with status code 409
    
DELETE /api/Templates/Delete Delete a template
Request Example
    /api/Templates/Delete?Name=TemplateName&RemoveExistingFiles=false (or)  /api/Templates/Delete + json object
            1. Using Query String. 
            Name parameter is required to specify the template to delete
            RemoveExistingFiles parameter is optional to specify if the related template files will be deleted from the company's templates folder.
                             (this is done only if there are no other templates that use this file) Default is true
    
            
            2. Using Json Object,
            {
                "Name": "Template Name"
            }
            
            
Response Example
            
    If the operation is successful an empty response will be returned with status code 200
    Otherwise an error will be returned with status code 409 
                
PATCH /api/Templates/UpdateElement Update a template's element
Request Example
    /api/Templates/UpdateElement?TemplateCode=code&ElementName=name
            TemplateCode and ElementName parameters are required to identify the template element to update
            
Model Request Example
    Only provided attributes are updated
    {   
        "MinCharacters": 0,
        "MaxCharacters": 0,
        "ForceCapitalize": true/false,
        "IsRequired": true/false,
        "Designs": ["string", "string", ...],     [if provided they fully override the existing ones if any]
        "Colours": ["string", "string", ...],     [if provided they fully override the existing ones if any]
        "Fonts": ["string", "string", ...],       [if provided they fully override the existing ones if any]        
    }

    Colours, Fonts and Designs lists represent the availables for the element. If provided, only matching colours, fonts and design db names are inserted. 
    Moreover:
        Fonts and designs should be of the same order type as the template.
        Fonts are inserted only if the element is of type text.
        Designs are inserted only if the element is not text and the template is not marked as "IsAllDesigns"
        Colours are inserted only if the template is not marked as "IsAllColours"
        For all the above provide an empty array if you want to empty the related records if any
    First 4 attributes are meaningfull only for text elements
            
Response Example
    If the operation is successful an empty response will be returned with status code 200
    Otherwise an error with code and message will be returned with status code 409
           
            
GET /api/templates/GetFreeFormPvData Gets the free form pv data of a template.
Request Example
    /api/templates/GetFreeFormPvData?id=templateName&designerMode=Advanced
   id - (Required) The template name
   designerMode - (Optional) It is the designer mode. Can take on of the following values: "Basic", "Advanced", "PerProduct"         
                
Response Example
{
    "Data":{
            "Elements":[{
                "Shapes":[{
                        "SvgData":"M 198.83 388.56L 198.83 362.98L 202.29 362.98L 215.73 383.06L 215.73 362.98L 218.97 362.98L 218.97 388.56L 215.50 388.56L 202.07 368.46L 202.07 388.56L 198.83 388.56zM 236.94 382.59L 240.19 382.99C 239.68 384.88 238.73 386.36 237.34 387.41C 235.96 388.45 234.19 388.97 232.04 388.97C 229.33 388.97 227.18 388.14 225.59 386.47C 224.00 384.80 223.21 382.46 223.21 379.45C 223.21 376.33 224.01 373.91 225.62 372.19C 227.22 370.47 229.31 369.61 231.86 369.61C 234.34 369.61 236.37 370.45 237.94 372.14C 239.51 373.82 240.29 376.20 240.29 379.26C 240.29 379.44 240.29 379.72 240.27 380.09L 226.46 380.09C 226.57 382.13 227.15 383.69 228.18 384.77C 229.22 385.85 230.51 386.39 232.06 386.39C 233.21 386.39 234.19 386.09 235.01 385.49C 235.82 384.88 236.47 383.91 236.94 382.59zM 226.63 377.51L 236.98 377.51C 236.84 375.95 236.44 374.79 235.79 374.01C 234.79 372.80 233.49 372.19 231.90 372.19C 230.46 372.19 229.24 372.68 228.26 373.64C 227.28 374.60 226.74 375.89 226.63 377.51zM 247.55 388.56L 241.88 370.03L 245.12 370.03L 248.07 380.72L 249.17 384.70C 249.22 384.50 249.54 383.23 250.13 380.88L 253.08 370.03L 256.30 370.03L 259.08 380.77L 260.01 384.32L 261.07 380.74L 264.24 370.03L 267.30 370.03L 261.50 388.56L 258.24 388.56L 255.29 377.46L 254.58 374.30L 250.83 388.56L 247.55 388.56zM 286.12 388.56L 286.12 366.00L 277.69 366.00L 277.69 362.98L 297.96 362.98L 297.96 366.00L 289.50 366.00L 289.50 388.56L 286.12 388.56zM 309.76 382.59L 313.00 382.99C 312.49 384.88 311.54 386.36 310.16 387.41C 308.78 388.45 307.01 388.97 304.86 388.97C 302.15 388.97 300.00 388.14 298.41 386.47C 296.82 384.80 296.03 382.46 296.03 379.45C 296.03 376.33 296.83 373.91 298.43 372.19C 300.04 370.47 302.12 369.61 304.68 369.61C 307.16 369.61 309.18 370.45 310.75 372.14C 312.32 373.82 313.11 376.20 313.11 379.26C 313.11 379.44 313.10 379.72 313.09 380.09L 299.27 380.09C 299.39 382.13 299.96 383.69 301.00 384.77C 302.03 385.85 303.33 386.39 304.87 386.39C 306.02 386.39 307.01 386.09 307.82 385.49C 308.64 384.88 309.28 383.91 309.76 382.59zM 299.45 377.51L 309.79 377.51C 309.65 375.95 309.26 374.79 308.61 374.01C 307.61 372.80 306.31 372.19 304.72 372.19C 303.27 372.19 302.06 372.68 301.08 373.64C 300.09 374.60 299.55 375.89 299.45 377.51zM 314.85 388.56L 321.62 378.93L 315.36 370.03L 319.28 370.03L 322.13 374.37C 322.66 375.20 323.09 375.89 323.41 376.45C 323.93 375.68 324.40 375.00 324.83 374.41L 327.95 370.03L 331.70 370.03L 325.30 378.75L 332.19 388.56L 328.34 388.56L 324.53 382.80L 323.52 381.25L 318.65 388.56L 314.85 388.56zM 341.66 385.75L 342.12 388.52C 341.23 388.71 340.44 388.80 339.74 388.80C 338.60 388.80 337.72 388.62 337.09 388.26C 336.47 387.90 336.03 387.42 335.77 386.84C 335.51 386.25 335.38 385.01 335.38 383.13L 335.38 372.47L 333.08 372.47L 333.08 370.03L 335.38 370.03L 335.38 365.44L 338.50 363.56L 338.50 370.03L 341.66 370.03L 341.66 372.47L 338.50 372.47L 338.50 383.30C 338.50 384.20 338.56 384.78 338.67 385.03C 338.78 385.29 338.96 385.49 339.21 385.64C 339.46 385.79 339.82 385.87 340.28 385.87C 340.63 385.87 341.09 385.83 341.66 385.75z"
                        }],
                "PaintingWays":[{
                        "Color":{
                            "Type":0,
                            "Name":null,
                            "Values":[0.07058824,0.8784314,0.9019608],
                            "RGBDisplayValues":[0.07058824,0.8784314,0.9019608]},
                            "StrokeType":0,
                            "Width":0.7145501594285768,
                            "PaintingWayType":1
                        }],
                "Properties":{
                        "Text":"New Text",
                        "FontFamily":"Arial",
                        "FontStyle":"Regular",
                        "FontHeight":100.0,
                        "IsSvgFont":false,
                        "JustificationType":1,
                        "Envelope":null,
                        "Opacity":1.0
                    },
                "Type":2,
                "Identity":{
                    "ElementName":"New Text",
                    "AssetType":2,
                    "AssetFguid":"Template name",
                    "ClientId":null,
                    "Filename":null
                },
                "Transformation":{"CenterX":270.46875,"CenterY":375.9765625,"ScaleX":1.0,"ScaleY":1.0,"Rotation":0.0},
                "Effects":[],
                "ClippingMask":null,
                "OpacityMask":null
                }],
                "DPI":0.0,
                "LocationBounds":null,
                "DesignerMode":null
                },
            "Success":true,
            "Errors":null
    }
                
POST /api/Templates/UploadMultiple
Model Request Example
        /api/Templates/UploadMultiple

    {
        "CompanyId" : 0,
        "Templates" : [
            {
                "Name" : "string",
                "Code" : "string",
                "Filename" : "string",
                "ReplaceFile " : "",
                "OrderType" : "design-template",
                 // optional start
                "MinScaleFactor" : 0,
                "MaxScaleFactor" : 0,
                "ImageOffsetX" : 0,
                "ImageOffsetY" : 0,
                "TemplateXOriginOffset" : 0,
                "TemplateYOriginOffset" : 0,
                "SortOrder" : 0,
                "RotationAngle" : 0,
                "PreviewRotationAngle" : 0,
                "PricingSKU" : "",
                "Origin" : "",
                "ProductCategory" : "",
                "DefaultProduct" : "",
                "TemplateSize" : "",
                "PrinterProfileXml" : "",
                "Description" : "",
                "Language" : "",
                "TemplateMessage" : "",
                "BeforeSewingMessage" : "",
                "AfterSewingMessage" : "",
                "IsUseConsistentCompression" : false,
                "IsAllColors" : false,
                "IsAllDesigns" : false,
                "TemplateCategories" : false,
                "IsDisableTextHeightMatching" : false,
                "TemplateKeywords" : "",
                "TemplateLocations" : "",
                "TemplateColours" : "",
                "TemplateFonts" : "",
                "Categories" : "",
                "Colors" : "",
                "Tags" : "",
                "Fonts" : "",
                "EngravingFonts" : "",
                "TemplateProductCategory" : "",
                "Locations" : "",
                "Size" : "",
                "TemplateDefaultProduct" : ""
                // optional end
            }
        ]
    }
            
Response Example
    If the operation is successful an empty response will be returned with status code 200