curl -X PUT https://api2.ecomailapp.cz/templates/1234 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Update Template",
"inline_css": true,
"html": "<b>Template HTML</b>"
}'
{
"id": 1234,
"name": "Update Template",
"html": "<b>Template HTML</b>",
"folder": 0,
"campaign_id": null,
"created_at": "2024-02-12 15:13:16",
"updated_at": "2024-02-12 16:45:30"
}
Update an existing email template by its ID.
curl -X PUT https://api2.ecomailapp.cz/templates/1234 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Update Template",
"inline_css": true,
"html": "<b>Template HTML</b>"
}'
{
"id": 1234,
"name": "Update Template",
"html": "<b>Template HTML</b>",
"folder": 0,
"campaign_id": null,
"created_at": "2024-02-12 15:13:16",
"updated_at": "2024-02-12 16:45:30"
}
Documentation Index
Fetch the complete documentation index at: https://docs.ecomail.cz/llms.txt
Use this file to discover all available pages before exploring further.
curl -X PUT https://api2.ecomailapp.cz/templates/1234 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Update Template",
"inline_css": true,
"html": "<b>Template HTML</b>"
}'
{
"id": 1234,
"name": "Update Template",
"html": "<b>Template HTML</b>",
"folder": 0,
"campaign_id": null,
"created_at": "2024-02-12 15:13:16",
"updated_at": "2024-02-12 16:45:30"
}