Allowance Management

Update a rule assignment

Changed on

Updates an existing rule assignment. You can change the date range or reassign to a different rule. An end date is only accepted on the day before the next assignment starts or on the member's last employment day; otherwise leave the end open by sending null. Gaps or overlaps inherited from before this rule are tolerated, but an edit may not widen them.

patch/rule-assignments/{id}

Request

  • Base URL
    https://api.absentify.com/api/v1
  • URL
    https://api.absentify.com/api/v1/rule-assignments/{id}
  • Auth
    API key in header X-API-KEY

Path parameters

idinteger required

Request body

rule_start_datestring

First day the rule applies (inclusive).

rule_end_datestring nullable

Last day the rule applies (inclusive), or null for open-ended. Omit the field to leave the current end date unchanged.

rule_idstring uuid
reasonstring required

Why this assignment is being changed — stored in the rule audit log.

Response

Successful response

successboolean required

Changes

    • warning

      changed the pattern of the request property from ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ to ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$