Skip to content

Template

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

interface Template {
alternativePreviewSourceContentTypes: [String!]!
content: TemplateContent!
description: String!
id: Guid!
isArchived: Boolean!
isFixed: Boolean!
isPreviewOnly: Boolean!
possiblePreviewContentTypes: [String!]!
possibleTargetContentTypes: [String!]!
scope: TemplateScope!
sourceContentTypes: [String!]!
type: TemplateType!
}

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

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

The kind of template.

organisations.templates.revert mutation ● organisations.templates.template query ● organisations.templates.toggleArchive mutation

DocumentTemplate object ● EngagementContentTemplate object ● NotificationTemplate object ● TicketTemplate object