Loading absences via REST API
Summary
Loading absences via REST APIContent
Hi Team
We are loading absences via the create absence REST API.
Below is the pay load.
{
"personNumber": "100008",
"employer": "CCS",
"absenceType": "CABS_Annual_Vacation_Leave_Type",
"startDate": "2020-05-07",
"endDate": "2020-05-07",
"startDateDuration" : "4.000",
"endDateDuration": "4.000",
"duration": "4.000",
"absenceStatusCd": "SUBMITTED",
"approvalStatusCd": "AWAITING"
}
When i load this API, i see the below 2 issues.
1. The absences does not go to approval hierarchy, it gets auto approved ( I ensured that the bypass approval is not checked ). Should i set any other parameter for absence approvals?
2. The duration of absence is not reflected in UI ( see screenshot)
I am using an elapsed schedule for employee, so not sure what to give in start and end duration. ( My employee is on a 4 hr work schedule, elapsed)
Tagged:
1