---
title: "Update entity email template"
method: PUT
path: "/entity/{entityId}/email-template/{emailTemplateId}"
tags: ["entity > email-template"]
---

# Update entity email template

`PUT /entity/{entityId}/email-template/{emailTemplateId}`

## Request

- Base URL: `https://api.mercoa.com`
- URL: `https://api.mercoa.com/entity/{entityId}/email-template/{emailTemplateId}`
- Auth: HTTP bearer

Update entity email template

## Path parameters

- `entityId` string, required
- `emailTemplateId` string, required

## Request body

- EntityTypesEmailTemplateRequest
  - `templateType` 'PAYMENT' | 'DISBURSEMENT', required
  - `name` string, required: The name of the email template.
  - `subject` string, required: The subject of the email template.
  - `content` string, required: The HTML content of the email template.
  - `isDefault` boolean: If true, this email template will be used as the default template for new invoices.

## Response `200`

Response with status 200

- EntityTypesEmailTemplateResponse
  - `id` string, required
  - `entityId` string, required
  - `templateType` 'PAYMENT' | 'DISBURSEMENT', required
  - `name` string, required: The name of the email template.
  - `subject` string, required: The subject of the email template.
  - `content` string, required: The HTML content of the email template.
  - `isDefault` boolean, required: True if this email template is the default template for new invoices.

## Other responses

- `400`: Error response with status 400
- `401`: Error response with status 401
- `403`: Error response with status 403
- `404`: Error response with status 404
- `409`: Error response with status 409
- `500`: Error response with status 500
- `501`: Error response with status 501

---

[API](https://skmtc.dev/mercoa/apis/mercoa-2.md) - [All operations](https://skmtc.dev/mercoa/apis/mercoa-2/llms.txt) - [OpenAPI document](https://skmtc.dev/mercoa/apis/mercoa-2/revisions/00a8e403ae18?raw)
