Skip to content

TicketTemplate

A ticket template: the layout that a ticket prints or renders with.

type TicketTemplate implements MonolithicTemplate, Template {
alternativePreviewSourceContentType: String
alternativePreviewSourceContentTypes: [String!]!
attachments: [TemplateAttachment!]!
content: TemplateContent!
description: String!
id: Guid!
isArchived: Boolean!
isFixed: Boolean!
isPreviewOnly: Boolean!
organisationId: Guid
possiblePreviewContentTypes: [String!]!
possibleTargetContentTypes: [String!]!
scope: TemplateScope!
sourceContentType: String
sourceContentTypes: [String!]!
targetContentType: String!
targetPageSpecification: PageSpecification
type: TemplateType!
}

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

The content types of the alternative sources that previews render from.

The files attached to the template.

The template’s content: the content of each component, with previews.

The template’s description.

Unique identifier.

Whether the template is archived. A template type that cannot be archived never is.

Whether the template is fixed: its description, scope and content types cannot change, but its content can.

Whether the template is preview-only: Kaizen builds it, and it has no editable source.

The organisation that owns the ticket template. Null for a global one.

The content types that the template can render to for a preview.

The target types: the content types that the template can render to.

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 source types: the content types that the template’s components are written in.

The target type: the content type that the template renders to.

The target page settings. Null when the target type needs no page.

The kind of template.

A ticket or document template: its components share one source type and one target type.

A template of any kind: a ticket, notification, document or engagement template.

organisations.templates.saveTicketTemplate mutation