← API reference
CANONICAL TYPE REFERENCE

TemplateState

A template for rendering data into text or PDF output

Unique identifier

handleString!

Template handle (unique within tenant)

Template rendering engine

contentString!

Template source

Template description

Current published version ID

Current published version number

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

View exact SDL
"""A template for rendering data into text or PDF output"""
type TemplateState @iac_resource(name: "template") @iac_ops(create: "createTemplate", read: "getTemplate", update: "updateTemplate", delete: "deleteTemplate") @iac_replace(strategy: DESTROY_BEFORE_CREATE) {
  """Unique identifier"""
  id: TemplateID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Template handle (unique within tenant)"""
  handle: String! @iac_forcesReplace
  """Template rendering engine"""
  kind: TemplateKind!
  """Template source"""
  content: String!
  """Template description"""
  description: String
  """Current published version ID"""
  currentVersionId: TemplateVersionID @iac_computed
  """Current published version number"""
  currentVersion: Int @iac_computed
  """Creation timestamp (ISO8601)"""
  createdAt: ISO8601! @iac_computed
  """Last update timestamp (ISO8601)"""
  updatedAt: ISO8601! @iac_computed
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.