---
title: "Update email template details"
method: PATCH
path: "/api/email-templates/{id}/details"
tags: ["Email templates"]
---

# Update email template details

`PATCH /api/email-templates/{id}/details`

Update the details of an email template by its ID.

## Path parameters

- `id` string, required

## Request body

- object
  - `subject` string — The template of the email subject.
  - `content` string — The template of the email body.
  - `contentType` union — The content type of the email body. (Only required by some specific email providers.)
    - string, "text/html"
    - string, "text/plain"
  - `replyTo` string — The reply name template of the email. If not provided, the target email address will be used. (The render logic may differ based on the email provider.)
  - `sendFrom` string — The send from name template of the email. If not provided, the default Logto email address will be used. (The render logic may differ based on the email provider.)

## Response `200`

The updated email template.

- object
  - `tenantId` string, required
  - `id` string, required
  - `languageTag` string, required
  - `templateType` 'SignIn' | 'Register' | 'ForgotPassword' | 'OrganizationInvitation' | 'Generic' | 'UserPermissionValidation' | 'BindNewIdentifier' | 'MfaVerification' | 'BindMfa', required
  - `details` object, required
    - `subject` string, required
    - `content` string, required
    - `contentType` union
      - string, "text/html"
      - string, "text/plain"
    - `replyTo` string
    - `sendFrom` string
  - `createdAt` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The email template was not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/a163dc77d842/schema)
