Skip to main content

Template

Defines a template that can be used as a base for a contract

type Template {
children: [Template!]!
combinedData: TemplateParentData
contracts: [Contract!]!
createdAt: DateTime!
createdBy: User!
credentialTypes: [String!]
description: String! @deprecated
display: TemplateDisplayModel
faceCheckSupport: FaceCheckPhotoSupport
id: ID!
isPublic: Boolean
name: String!
parent: Template
parentData: TemplateParentData
updatedAt: DateTime
updatedBy: User
validityIntervalInSeconds: PositiveInt
}

Fields

Template.children ● [Template!]! non-null object

This templates children, if any.

Template.combinedData ● TemplateParentData object

The combined representation of this template, it's parent + ancestors, if any.

Template.contracts ● [Contract!]! non-null object

The template contracts, if any

Template.createdAt ● DateTime! non-null scalar

When the template was created.

Template.createdBy ● User! non-null object

The user who created the template.

Template.credentialTypes ● [String!] list scalar

The type(s) of the contract / credential

Template.description ● String! deprecated non-null scalar

DEPRECATED

no longer in use

The description of the template

Template.display ● TemplateDisplayModel object

The full or partial credential display definition defined by this template, if any.

Template.faceCheckSupport ● FaceCheckPhotoSupport enum

The type of face check photo support

Template.id ● ID! non-null scalar

The unique identifier for the template

Template.isPublic ● Boolean scalar

Defines whether the contracts created from this template will be published in the Verified Credentials Network

Template.name ● String! non-null scalar

The name of the template

Template.parent ● Template object

The parent template, if any.

Template.parentData ● TemplateParentData object

The combined representation of this template's parent + ancestors, if any.

Template.updatedAt ● DateTime scalar

When the template was last updated.

Template.updatedBy ● User object

The user who last updated the template.

Template.validityIntervalInSeconds ● PositiveInt scalar

The lifespan of the credential expressed in seconds

Returned By

createTemplate mutation ● findTemplates query ● template query ● updateTemplate mutation

Member Of

Contract object ● Template object