Event Properties
| Field | Value |
|---|---|
event | "template.created" |
confidential | boolean |
payload | object |
- Public Payload
- Confidential Payload
| Field | Type | Description |
|---|---|---|
title | string | Name given to the new template |
language | string | Language the template is written in |
numSections | number | Count of sections in the template |
templateType | "legacy" | "personal" | undefined | Type of template: “legacy” for custom templates, “personal” for personal templates |
source | "template_assembler" | undefined | Source of creation |
reusedSectionCount | number | undefined | Number of sections reused unchanged by reference |
customisedSectionCount | number | undefined | Number of sections created with customizations |
Example
{
"event": "template.created",
"confidential": false,
"payload": {
"title": "SOAP",
"language": "en",
"numSections": 6
}
}
| Field | Type | Description |
|---|---|---|
title | string | Name given to the new template |
language | string | Language the template is written in |
numSections | number | Count of sections in the template |
template | TemplateCreatedPayload | Complete template object with all sections |
template object properties
template object properties
| Field | Type | Description |
|---|---|---|
id | string | - |
name | string | - |
language | string | - |
sections | Section[] | - |
| Field | Type | Description |
|---|---|---|
id | string | - |
title | string | - |
Example
{
"event": "template.created",
"confidential": true,
"payload": {
"title": "SOAP",
"language": "en",
"numSections": 6,
"template": {
"id": "template_1",
"name": "SOAP",
"language": "en",
"sections": [
{
"id": "section_1",
"title": "HPI"
}
]
}
}
}