---
title: "Update an email template"
method: PUT
path: "/v3/email-templates/{id}"
tags: ["Email Templates"]
---

# Update an email template

`PUT /v3/email-templates/{id}`

<small>_Requires the `sequences:write` scope (or a broader one that includes it)._</small>

Updates an existing email template.

## Path parameters

- `id` integer, required

## Request body

- object — Request body for updating an existing email template.
  - `name` string, required — Name of the email template
  - `subject` string, nullable — Email subject line
  - `body` string, required — HTML body of the email template
  - `attachmentIds` integer[] — List of attachment IDs to associate with the template (replaces existing attachments)

## Response `200`

Email template updated successfully

- object — Full representation of an email template including timestamps.
  - `id` integer — Unique identifier for the email template
  - `name` string — Name of the email template
  - `subject` string, nullable — Email subject line
  - `body` string — HTML body of the email template
  - `folderId` integer, nullable — ID of the folder containing this template
  - `folderType` string, nullable — Type of the folder (e.g., "personal", "shared")
  - `attachments` object[] — List of attachments associated with the template
    - `id` integer — Unique identifier for the attachment
    - `fileName` string — Original file name of the attachment
    - `url` string — URL to download the attachment
    - `size` integer — File size in bytes
  - `createdAt` string, date-time — Timestamp when the template was created
  - `updatedAt` string, date-time — Timestamp when the template was last updated

## Other responses

- `400` — Validation failure on the request body or route parameter, or a business rule rejection (e.g. too many attachments).
- `401` — Unauthorized. The response body is empty; check the `WWW-Authenticate` header for the expected scheme.
- `403` — User lacks required feature scope to update this email template
- `404` — Email template not found
- `409` — An email template with the given name already exists
- `429` — Too Many Requests

---

[API](https://skmtc.net/reply/apis/reply-api.md) · [All operations](https://skmtc.net/reply/apis/reply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reply/reply-api/versions/1c3d32eaf95e/schema)
