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
Name | Type | Description |
---|---|---|
input | Object | An object that contains the details of CreateEmailTemplateInput object. |
Returns
Name | Type | Description |
---|---|---|
EmailTemplate | Object | An object that contains the details of EmailTemplate object, such as template content, subject, organization ID, etc. |