Absence Period Creation Update
As of 24th January 2025, a critical update has been made to the absence period creation process in the API to address an issue with single-day requests involving half-day settings. This update ensures that invalid absence period requests are properly handled to prevent unintended balance accounting issues.
When creating an absence period for a single day with both
half_day_start
andhalf_day_end
set totrue
, the system previously allowed the creation of an absence. This was likely not the intended behaviour for most users, who might have meant to create a full-day absence.
Resolution: The API now prevents the creation of single-day absence periods where both half_day_start
and half_day_end
are set to true
. Attempts to create such absences will now result in an error response as below.
"code":400,"message":"Invalid absence day. Reason: Both half day start and half day end are true for a single-day period"
Error Handling:
To create a full-day absence, ensure that both half_day_start
and half_day_end
are set to false
. Refer to the updated format specifications below for valid absence period configurations.
PAPI v1 Absence Period Time Range Fields (Daily Absences Types)