curl -X POST https://api2.ecomailapp.cz/template \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "New Template",
"html": "<b>Template HTML</b>"
}'
{
"id": 1,
"name": "New Template",
"html": "<b>Template HTML</b>"
}
Create a new email template.
curl -X POST https://api2.ecomailapp.cz/template \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "New Template",
"html": "<b>Template HTML</b>"
}'
{
"id": 1,
"name": "New Template",
"html": "<b>Template HTML</b>"
}
curl -X POST https://api2.ecomailapp.cz/template \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "New Template",
"html": "<b>Template HTML</b>"
}'
{
"id": 1,
"name": "New Template",
"html": "<b>Template HTML</b>"
}