---
title: "UpdateEmailTemplate"
method: PATCH
path: "/channel/{id}/email-template/{templateId}"
tags: ["Email_templates"]
---

# UpdateEmailTemplate

`PATCH /channel/{id}/email-template/{templateId}`

Update email template

## Path parameters

- `id` string, required
- `templateId` string, required

## Request body

- object
  - `name` string — <p>The template name.</p>
  - `subject` string — <p>The email subject.</p>
  - `preHeader` string — <p>The email preheader.</p>
  - `content` object — <p>The structured email editor content. HTML blocks are stored in content.elements entries with type &quot;html&quot; and field &quot;content&quot;.</p>

## Response `200`

Success-Response:

- object
  - `success` boolean, required — <p>True if the template was updated successfully.</p>

---

[API](https://skmtc.dev/cleverpush/apis/cleverpush-api-reference.md) · [All operations](https://skmtc.dev/cleverpush/apis/cleverpush-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cleverpush/cleverpush-api-reference/revisions/64ed799d2f1b/schema)
