How to make Upsert-Mode functioning in absence record API? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to make Upsert-Mode functioning in absence record API?

Summary:

Our integration demands if an absence entry is already there for the combination of PersonNumber|AbsenceType|StartDate then incoming data should update the existing entry else create a new absence entry. I see that Upsert-Mode helps us with the above. However when I try to update the existing entry by passing the below with Upsert-Mode set to true in header.

{{InstanceURL}}/hcmRestApi/resources/11.13.18.05/absences

{
"personNumber": "123",
"absenceType": "Non-FMLA Medical",
"employer": "ABC LE",
"absenceReason": "Illness, injury",
"startDate": "2025-03-19",
"startTime": "00:00",
"endDate": "2025-03-20",
"startDateDuration": 7.5,
"endDateDuration": 7.5,
"absenceStatusCd": "SUBMITTED"
}

System shows the following error which is expected if system tries to create new entry instead of Merge.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!