MailTemplates
Upload a mail template file
Authorizations
Body
filestring · binaryOptional
HTML mail template file to upload
overwritebooleanOptionalDefault:
Whether to overwrite the existing file
false
Responses
201
Mail template uploaded successfully
application/json
400
Upload failed due to validation or duplication
application/json
post
POST /api/v1/upload_mail_templates/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35
{
"file": "binary",
"overwrite": false
}
{
"is_success": true,
"file_url": "https://example.com/mail_templates/welcome.html",
"message": "The mail_template is uploaded successfully."
}
Was this helpful?