---
title: "Update Rule"
method: PUT
path: "/employer/pay-statement-item/rule/{rule_id}"
tags: ["Payroll"]
---

# Update Rule

`PUT /employer/pay-statement-item/rule/{rule_id}`

Update a rule for a pay statement item.

## Query parameters

- `entity_ids` string[]

## Headers

- `Finch-API-Version` string, date, required
- `Content-Type` string, required

## Request body

- UpdateRuleRequest
  - `optionalProperty` unknown

## Response `200`

Successfully Updated

- UpdateRuleResponse
  - `id` string, uuid — Finch id (uuidv4) for the rule.
  - `priority` integer — The priority of the rule.
  - `created_at` string, date-time — The datetime when the rule was created.
  - `updated_at` string, date-time — The datetime when the rule was last updated.
  - `effective_start_date` string, nullable
  - `effective_end_date` string, nullable
  - `conditions` object[]
    - `field` string — The field to be checked in the rule.
    - `operator` 'equals' — The operator to be used in the rule.
    - `value` string — The value of the field to be checked in the rule.
  - `attributes` object — Specifies the fields to be applied when the condition is met.
    - `metadata` object — The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).
  - `entity_type` 'pay_statement_item' — The entity type to which the rule is applied.

## Other responses

- `400` — Malformed Request

---

[API](https://skmtc.net/finch-api/apis/api-reference.md) · [All operations](https://skmtc.net/finch-api/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/finch-api/api-reference/versions/20f8dd5faf09/schema)
