---
title: "Update Template"
method: PATCH
path: "/templates/{template_id}"
tags: ["Template APIs"]
---

# Update Template

`PATCH /templates/{template_id}`

This endpoint allows you to update an existing template's name and HTML content using its template ID. Only the first block of HTML content from the array is stored.

## Path parameters

- `template_id` integer, required

## Request body

- object
  - `name` string, required — Updated name of the template. Must be unique and non-empty.
  - `content` object[], required — HTML content array. Only the first block will be used.
    - `type` 'html', required — Content type. Only "html" is supported.
    - `value` string, required — URL-encoded HTML content. Cannot be empty. Max 10MB.

## Response `200`

Template updated successfully.

- object
  - `id` string
  - `name` string
  - `added` string
  - `updated_at` string

## Other responses

- `400` — Bad Request – Returned when input parameters are invalid.

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
