# EmailTemplateVariantInput input


One variant of a new template.

## Input fields

### language

`String`

A language code from the locales catalogue. Null for the all-languages variant.

### subject

`String!` · required

The subject in Liquid, one line.

### htmlBody

`String`

The HTML body in Liquid. Only on an `HTML` template. If omitted, the variant takes the HTML of
the all-languages variant of the same input, else of the `sk` variant. `VALIDATION` when
neither has one.

### textBody

`String`

The plain-text body in Liquid. Only on an `HTML` template. If omitted, it is derived from the
HTML at render.

### design

[`JSON`](/chameleoon-max/type/json)

The block design ([`EmailTemplateVariant`](/chameleoon-max/type/email-template-variant) `design`). Only on a `JSON` template. If
omitted, the variant takes the design of the all-languages variant of the same input, else of
the `sk` variant, else a starter design for the resource kind.

## Used by

- [`CreateEmailTemplateInput`](/chameleoon-max/type/create-email-template-input)
