Skip to main content

Template

EntityTemplate

Base type for all content templates. Subtypes include Template_Document (for generating PDFs and printed documents) and Template_Email (for sending automated emails). Templates use dynamic variable substitution to merge CRM data into the content.

Endpoints

List

GET/v1/odata/Template

Get by ID

GET/v1/odata/Template({id})

Create

POST/v1/odata/Template

Update

PUT/v1/odata/Template({id})

Delete

DELETE/v1/odata/Template({id})

Fields

FieldTypeDescription
NameStringName
ContentStringContent
IsInactiveBooleanIs inactive
LocalizedNameStringName (translated)
CodeStringCode
FontStringFont
IsDefaultBooleanIs standard

Relationships

RelationshipTarget EntityCardinalityDescription
TemplateCategoryTemplateCategoryN:1Template Category
LanguageDatastore_LanguageN:1Language
FileDoNotUseFileN:1File Do Not Use
FileFileN:1File

Expanding Relationships

GET/v1/odata/Template({id})?$expand=Language
GET/v1/odata/Template({id})/Language