Upload Email Template
This endpoint allows you to upload email templates. It returns the status of the email template uploaded with a success and message body that can be used for further queries.
Upload an email using this POST
Request
BASE_URL/upload/email/template
- Authorization ->
Bearer [ACCESS_TOKEN]
- Content-Type ->
multipart/form-data
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
templateName | string | yes* | The name of the template |
templateVariables | string[] | yes* | An array of template variables represented by #VARIABLE_NAME# e.g ['#EMAIL#', '#NAME#'] |
templateFile | object | yes* | Supported file type is only html |
Responses
Success
Status Code: 200
{
"success": true,
"message": "Email template created successfully"
}
Validation Error Response
Status Code: 200
{
"success": false,
"message": "Message Returned"
}
Error
Status Code: 400
{
"success": false,
"message": "Message Returned"
}