DocumentTemplate
A document template: a report or document that the platform renders.
type DocumentTemplate implements MonolithicTemplate, Template { alternativePreviewSourceContentType: String alternativePreviewSourceContentTypes: [String!]! attachments: [TemplateAttachment!]! content: TemplateContent! description: String! id: Guid! isArchived: Boolean! isFixed: Boolean! isPreviewOnly: Boolean! possiblePreviewContentTypes: [String!]! possibleTargetContentTypes: [String!]! scope: TemplateScope! sourceContentType: String sourceContentTypes: [String!]! targetContentType: String! targetPageSpecification: PageSpecification 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.
alternativePreviewSourceContentTypes ● [String!]!non-nullscalar
Section titled “alternativePreviewSourceContentTypes ● [String!]! ”The content types of the alternative sources that previews render from.
attachments ● [TemplateAttachment!]!non-nullobject
Section titled “attachments ● [TemplateAttachment!]! ”The files attached to the template.
content ● TemplateContent!non-nullobject
Section titled “content ● TemplateContent! ”The template’s content: the content of each component, with previews.
description ● String!non-nullscalar
Section titled “description ● String! ”The template’s description.
id ● Guid!non-nullscalar
Section titled “id ● Guid! ”Unique identifier.
isArchived ● Boolean!non-nullscalar
Section titled “isArchived ● Boolean! ”Whether the template is archived. A template type that cannot be archived never is.
isFixed ● Boolean!non-nullscalar
Section titled “isFixed ● Boolean! ”Whether the template is fixed: its description, scope and content types cannot change, but its content can.
isPreviewOnly ● Boolean!non-nullscalar
Section titled “isPreviewOnly ● Boolean! ”Whether the template is preview-only: Kaizen builds it, and it has no editable source.
possiblePreviewContentTypes ● [String!]!non-nullscalar
Section titled “possiblePreviewContentTypes ● [String!]! ”The content types that the template can render to for a preview.
possibleTargetContentTypes ● [String!]!non-nullscalar
Section titled “possibleTargetContentTypes ● [String!]! ”The target types: the content types that the template can render to.
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 source types: the content types that the template’s components are written in.
The target type: the content type that the template renders to.
targetPageSpecification ● PageSpecificationobject
Section titled “targetPageSpecification ● PageSpecification ”The target page settings. Null when the target type needs no page.
type ● TemplateType!non-nullenum
Section titled “type ● TemplateType! ”The kind of template.
Interfaces
Section titled “Interfaces”A ticket or document template: its components share one source type and one target type.
Templateinterface
Section titled “Template ”A template of any kind: a ticket, notification, document or engagement template.

