.. include:: /Includes.rst.txt .. _feature-1793041495: ====================================================== Feature: Set the leave contingent of a single employee ====================================================== Description =========== HR sets the contingent of one employee for a leave type with ``putLeaveContingentOverride`` (``PUT /api/v1/leave-types/{id}/contingent-overrides/{employeeId}``, body ``amount`` and optional ``year``), lists the overrides of a type with ``listLeaveContingentOverrides`` and removes one with ``deleteLeaveContingentOverride`` (query ``year``). The amount replaces that of the type in the unit of the type; an amount for a year wins over one for every year, and 0 takes the contingent away from the person. Only a type with a contingent accepts an override. The table ``leave_contingent_override`` is new. Impact ====== Without overrides everybody keeps the amount of the type. The counting of requests, the preview and ``getLeaveContingents`` read the override. .. index:: API, Database, package:adsum-leave