Skip to main content
PUT
/
api
/
v1
/
templates
/
{templateId}
Update Template
curl --request PUT \
  --url https://api.sequenzy.com/api/v1/templates/{templateId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "html": "<string>",
  "blocks": [
    {}
  ],
  "labels": [
    {}
  ]
}
'
{
  "success": true,
  "template": {
    "id": "email_abc123",
    "name": "[Template] Welcome",
    "subject": "Welcome to Acme",
    "labels": ["edm"]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt

Use this file to discover all available pages before exploring further.

Update template metadata, labels, or content. You can pass an email template ID; transactional email IDs and slugs are also resolved for compatibility.

Request

templateId
string
required
Template ID, transactional email ID, or transactional slug.
name
string
Updated template name.
subject
string
Updated email subject line.
html
string
Replacement HTML body. Use this or blocks, not both.
blocks
array
Replacement Sequenzy email blocks. Use this or html, not both.
labels
array
Replacement label names. Send an empty array to clear labels. Missing labels are created automatically. The API also accepts label as a compatibility alias.
curl -X PUT "https://api.sequenzy.com/api/v1/templates/email_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject": "Welcome to Acme", "labels": ["edm"]}'

Responses

{
  "success": true,
  "template": {
    "id": "email_abc123",
    "name": "[Template] Welcome",
    "subject": "Welcome to Acme",
    "labels": ["edm"]
  }
}