---
title: "Update a rule assignment"
method: PATCH
path: "/rule-assignments/{id}"
tags: ["Allowance Management"]
---

# Update a rule assignment

`PATCH /rule-assignments/{id}`

Updates an existing rule assignment. You can change the date range or reassign to a different rule. Date ranges must not overlap with other assignments.

## Path parameters

- `id` integer, required

## Request body

- object
  - `rule_start_date` string — First day the rule applies (inclusive).
  - `rule_end_date` string, nullable — Last day the rule applies (inclusive), or null for open-ended. Omit the field to leave the current end date unchanged.
  - `rule_id` string, uuid
  - `reason` string, required — Why this assignment is being changed — stored in the rule audit log.

## Response `200`

Successful response

- object
  - `success` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

---

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