Skip to content

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!
}

The content type of the alternative source that a preview renders from. Required when there is no source type.

The template’s components, each with its content.

The template’s description.

The item to update. Omitted: a new item is created.

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.

The kind of template.

organisations.templates.saveTicketTemplate mutation