createEmailTemplate

This mutation generates an email template of a specific event.

Sample Mutation

mutation{
  createEmailTemplate(input:{
    orgID:"a1dc174d-abf4-47d3-be3c-9281c6eba456"
    eventType:UserSignUp
    templateContent:"A new user just signed up"
    subject:"Mojito User Sign Up"
  }){
    id
    organizationID
    eventType
    active
    templateContent
    subject
  }
}

Argument

NameTypeDescription
inputObjectAn object that contains the details of CreateEmailTemplateInput object.

Returns

NameTypeDescription
EmailTemplateObjectAn object that contains the details of EmailTemplate object, such as template content, subject, organization ID, etc.