# PrintTemplate type


One of the organisation's print templates: a layout in the renderer's JSON that prints one kind of
document. It places the organisation's and the document's company's assets by their reference,
such as `tenant.logo`, `company.logo` or `company.signature`. A reference to an asset that does not
exist takes no space.

## Fields

### id

[`UUID!`](/chameleoon-max/type/uuid)

The template's MAX id.

### kind

[`PrintTemplateKind!`](/chameleoon-max/type/print-template-kind)

The kind of document the template prints.

### syntax

[`PrintTemplateSyntax!`](/chameleoon-max/type/print-template-syntax)

The format the template is written in.

### output

[`PrintTemplateOutput!`](/chameleoon-max/type/print-template-output)

What the template produces.

### language

`String!`

The language of the readers the template prints for: `sk`, `cs` or `en`.

### name

`String!`

The template's name.

### isDefault

`Boolean!`

Whether this is the template its kind and language print with when a print names no template.

### bodyBytes

`Int!`

The size of `body` in bytes.

### body

`String!`

The template exactly as written, at most 512 KiB.

Costs 50 points.

### archivedAt

[`Time`](/chameleoon-max/type/time)

When the template was archived. Null while it is active.

### createdAt

[`Time!`](/chameleoon-max/type/time)

When the template was created.

### updatedAt

[`Time!`](/chameleoon-max/type/time)

When the template last changed.

## Used by

- [`copyPrintTemplate`](/chameleoon-max/mutation/copy-print-template) (mutation)
- [`createPrintTemplate`](/chameleoon-max/mutation/create-print-template) (mutation)
- [`setPrintTemplateArchived`](/chameleoon-max/mutation/set-print-template-archived) (mutation)
- [`updatePrintTemplate`](/chameleoon-max/mutation/update-print-template) (mutation)
- [`printTemplate`](/chameleoon-max/query/print-template) (query)
- [`PrintTemplateConnection`](/chameleoon-max/type/print-template-connection)
- [`PrintTemplateEdge`](/chameleoon-max/type/print-template-edge)
