Learn how to get the newest data back from Kombo.
data-changed
. This is sent to your system whenever data has changed inside Kombo. For example, after:
/employees
endpoint to fetch both employees and their employments and team memberships.
Furthermore, after every successful fetch from us, store the timestamp of when the respective fetch started. Use this timestamp during your next fetch and pass it with your requests to the Kombo API as the updated_after
query parameter. Kombo will then only return the entries that changed since that timestamp.
Read more about this here.
Good to know: The updated_after
filter also considers changes in models that are returned by the endpoint as nested values. For example, the /employees
endpoint will include every employee that has had changes to related employments or team memberships, even if the employee profile itself did not change.
Endpoint | Models |
---|---|
Get absences | hris_absences hris_absence_types |
Get employees | hris_employees hris_employments hris_join_employees_teams hris_legal_entities hris_locations hris_teams hris_time_off_balances |
Get employments | hris_employments |
Get groups | hris_teams |
Get time off balances | hris_time_off_balances hris_absence_types |
Get timesheets | hris_timesheets |
updated_after
query parameter. Then upsert the data returned by Kombo and merge it with your existing data copy.