---
title: "Update an absence email template"
method: PATCH
path: "/absence-email-templates/{id}"
tags: ["Absence Email Management"]
---

# Update an absence email template

`PATCH /absence-email-templates/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/absence-email-templates/{id}`
- Auth: HTTP bearer

Updates an existing template's name, subject, body, escalation tier, or active status. Changes apply to future emails only.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `subject_template` string
  - `body_template` string
  - `escalation_tier` 'first_warning' | 'first_warning_with_offer' | 'mid_escalation' | 'deferral_offer' | 'forced_deferral'
  - `is_active` boolean

## Response `200`

Template updated successfully

## Other responses

- `401`: Unauthorized
- `404`: Template not found
- `409`: Template with this name already exists
- `422`: Validation failed

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
