---
title: "Template data model"
url: "https://docs.unified.to/printing/template/model"
description: "The Template data model object in Unified's Template API: 10 fields, including created_at, updated_at and name, with types and enum values."
date: "2026-11-24T21:03:15.660Z"
updated: "2026-11-24T21:03:15.660Z"
---
# Template data model

Updated: November 24, 2026

A saved design template: a blank product with artwork placed on it

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/printing/integrations.md) page. 

| Field                                    | Type                  | Required | Description                                                                                                                                                                                                   |
| ---------------------------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                                       | string                | No       |                                                                                                                                                                                                               |
| created\_at                              | string (date-time)    | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| updated\_at                              | string (date-time)    | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| name                                     | string                | No       |                                                                                                                                                                                                               |
| description                              | string                | No       |                                                                                                                                                                                                               |
| product\_id                              | string                | No       | The PrintingProduct ID of the blank product                                                                                                                                                                   |
| preview\_url                             | string                | No       | Mockup or preview image URL                                                                                                                                                                                   |
| variant\_identifiers                     | string\[\]            | No       | Identifiers of the product variants this template is available for                                                                                                                                            |
| placements                               | PrintingPlacement\[\] | No       | Print areas used by this template                                                                                                                                                                             |
| placements\[\].code                      | string                | No       | Placement key used when attaching a print file (eg. front, back)                                                                                                                                              |
| placements\[\].name                      | string                | No       | Display name                                                                                                                                                                                                  |
| placements\[\].technique                 | string                | No       | Print technique or decoration method code for this placement (eg. dtg, embroidery)                                                                                                                            |
| placements\[\].width                     | number                | No       | Width of the print area, in unit                                                                                                                                                                              |
| placements\[\].height                    | number                | No       | Height of the print area, in unit                                                                                                                                                                             |
| placements\[\].unit                      | enum                  | No       | Unit of width and height Values: PIXEL, MILLIMETER, CENTIMETER, INCH, OTHER                                                                                                                                   |
| placements\[\].dpi                       | number                | No       | Print resolution for the given width and height                                                                                                                                                               |
| placements\[\].additional\_price\_amount | number                | No       | Extra cost when this placement is printed                                                                                                                                                                     |
| metadata                                 | PrintingMetadata\[\]  | No       |                                                                                                                                                                                                               |
| metadata\[\].id                          | string                | No       | The ID of the custom field definition (from the metadata/metadata endpoint).                                                                                                                                  |
| metadata\[\].slug                        | string                | No       | The integration's API name (key) of an existing custom field.                                                                                                                                                 |
| metadata\[\].value                       | object                | No       | The field's value, typed by format.                                                                                                                                                                           |
| metadata\[\].namespace                   | string                | No       |                                                                                                                                                                                                               |
| metadata\[\].format                      | enum                  | No       | The data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data                 | object                | No       |                                                                                                                                                                                                               |

## TypeScript

```typescript
export type PrintingTemplate = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string;
	description?: string;
	product_id?: string; // The PrintingProduct ID of the blank product
	preview_url?: string; // Mockup or preview image URL
	variant_identifiers?: string[]; // Identifiers of the product variants this template is available for
	placements?: []; // Print areas used by this template
	metadata?: [];
	raw?: any; // Raw data from integration
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodPrintingTemplate = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional(),
	description: z.string().optional(),
	product_id: z.string().optional().describe("The PrintingProduct ID of the blank product"),
	preview_url: z.string().optional().describe("Mockup or preview image URL"),
	variant_identifiers: z.array().optional().describe("Identifiers of the product variants this template is available for"),
	placements: z.array().optional().describe("Print areas used by this template"),
	metadata: z.array().optional(),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PrintingTemplate:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	name: Optional[str]
	description: Optional[str]
	"""The PrintingProduct ID of the blank product"""
	product_id: Optional[str]
	"""Mockup or preview image URL"""
	preview_url: Optional[str]
	"""Identifiers of the product variants this template is available for"""
	variant_identifiers: Optional[List[List[str]]]
	"""Print areas used by this template"""
	placements: Optional[PropertyPrintingTemplatePlacements]
	metadata: Optional[PropertyPrintingTemplateMetadata]

```
