---
title: "Update Email Template"
method: PUT
path: "/v1/email-templates/{template_id}"
tags: ["email-templates"]
---

# Update Email Template

`PUT /v1/email-templates/{template_id}`

## Request

- Base URL: `https://api.elaan.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elaan.io/v1/email-templates/{template_id}`
- Auth: none declared

## Path parameters

- `template_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- UpdateEmailTemplateRequest
  - `language` string, nullable
  - `subject` string, required
  - `body` string, required

## Response `200`

Successful Response

- EmailTemplateResponse
  - `id` string, required
  - `notification_type_key` string, required
  - `branding_key` string, nullable, required
  - `language` string, nullable, required
  - `variables` string[], required
  - `subject` string, required
  - `body` string, required

## Other responses

- `404`: No email template with this id
- `409`: Another template already occupies this notification type + brand + language slot
- `422`: The new content is empty

---

[API](https://skmtc.dev/elaan/apis/elaan-api.md) · [All operations](https://skmtc.dev/elaan/apis/elaan-api/llms.txt) · [OpenAPI document](https://skmtc.dev/elaan/apis/elaan-api/revisions/c96a7e6399aa?raw)
