TicketTemplateInput
A ticket template to save, with its content.
input TicketTemplateInput { alternativePreviewSourceContentType: String components: [TemplateComponentInput!]! description: String! id: Guid scope: TemplateScope! sourceContentType: String targetContentType: String! targetPageHeightMm: Int targetPageMarginMm: Int targetPageWidthMm: Int type: TemplateType!}Fields
Section titled “Fields”alternativePreviewSourceContentType ● Stringscalar
Section titled “alternativePreviewSourceContentType ● String ”The content type of the alternative source that a preview renders from. Required when there is no source type.
components ● [TemplateComponentInput!]!non-nullinput
Section titled “components ● [TemplateComponentInput!]! ”The template’s components, each with its content.
description ● String!non-nullscalar
Section titled “description ● String! ”The template’s description.
id ● Guidscalar
Section titled “id ● Guid ”The item to update. Omitted: a new item is created.
scope ● TemplateScope!non-nullenum
Section titled “scope ● TemplateScope! ”What the template applies to, such as an order line or a delivery.
The source type: the content type that the template is written in. Null for a template with no source.
The target type: the content type that the template renders to.
The target page height, in millimetres. Required when the target type needs a page, and not allowed otherwise.
The target page margin, in millimetres. Required when the target type needs a page, and not allowed otherwise.
The target page width, in millimetres. Required when the target type needs a page, and not allowed otherwise.
type ● TemplateType!non-nullenum
Section titled “type ● TemplateType! ”The kind of template.

