---
title: "Update an automated email"
method: PATCH
path: "/v3/automated-emails/{id}"
tags: ["AutomatedEmails"]
---

# Update an automated email

`PATCH /v3/automated-emails/{id}`

Updates the specified automated email by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, required

## Request body

- AutomatedEmailUpdateRequestModel
  - `name` string, nullable — Name of the email template.
  - `fromName` string, nullable — Name of the email sender.
  - `fromEmail` string, email, nullable — From email address.
  - `cc` string, nullable — Cc address for the email template.
  - `bcc` string, nullable — Bcc address for the email template.
  - `replyTo` string, nullable — Reply-To address for the email template.
  - `enabled` boolean, nullable — Enable or disable the email template.
  - `subject` string, nullable — Subject of the email template.
  - `body` string, nullable — Body of the email template.
  - `event` string, nullable — Event to trigger sending of the email.
  - `custom` boolean, nullable — Use custom email template.
  - `productIds` string[], nullable — Optional list of product IDs that this email template should apply to for license events.

## Response `200`

OK

- EmailTemplateDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `fromName` string, required
  - `fromEmail` string, required
  - `cc` string, required
  - `bcc` string, required
  - `subject` string, required
  - `body` string, required
  - `replyTo` string, required
  - `event` string, required
  - `enabled` boolean, required
  - `custom` boolean, required
  - `sent` integer, required
  - `productIds` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

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