Skip to main content

EmailTemplate

Stored in the emailtemplates collection. createdAt and updatedAt are maintained automatically.

Returned by POST /campaign/test/:type, GET /template/email, POST /template/email, GET /template/email/:id, PUT /template/email/:id.

FieldTypeNotes
namestringunique
categorystring
subjectstringrequired
bodystringrequired
variablesobject[]default []
variables.namestringrequired
variables.requiredbooleandefault false
variables.dateTypestringone of dd/mm/yyyy hh:mm a, dd/mm/yyyy
attachmentsObjectId[] -> Filedefault []
companyObjectId -> Company
createdByObjectId -> Member
updatedByObjectId -> Member
_idObjectIddefault "6a95712f932657988a91c08d"
createdAtdateset once
updatedAtdate