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

# Update an absence email rule

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

## Request

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

Updates an existing tier-based rule's parameters. Changes apply to future queue generation only.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `escalation_tier` 'first_warning' | 'first_warning_with_offer' | 'mid_escalation' | 'deferral_offer' | 'forced_deferral'
  - `absence_type` 'unexcused' | 'business' | 'personal' | 'any'
  - `is_first_session` boolean
  - `no_email` boolean
  - `template_id` string, uuid, nullable
  - `priority` integer

## Response `200`

Rule updated successfully

## Other responses

- `400`: Invalid template_id/no_email combination
- `401`: Unauthorized
- `404`: Rule not found
- `409`: Duplicate rule 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)
