---
title: "Update a template"
method: PATCH
path: "/template"
tags: ["Template API"]
---

# Update a template

`PATCH /template`

Update template name and/or template content stored in the Netcore CPaaS dashboard.

Pass the template_id and only the fields you want to change.

## Headers

- `api_key` string, required

## Request body

- object
  - `template_id` integer, required — Add the template ID you want to update.
  - `template_name` string — Add a new template name if you want to rename the template.
  - `content` object[] — Add updated content blocks to replace the existing template content.
    - `type` string — Choose content format — html or amp.
    - `value` string — Add the updated template body content.

## Response `200`

Template updated successfully

- object
  - `data` object
    - `template_id` integer
    - `template_name` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

[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)
