Skip to main content
PUT
/
templates
/
{template_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.

template_id
integer
required
Template ID.
html
string
required
Template HTML content.
name
string
Template name.
inline_css
boolean
Whether to inline CSS styles into the HTML.
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"
}