Track an attendance entry.

This endpoint tracks time only providing the following information: employee identifier and a date time. The following identifiers are the valid ones: userId, email or externalId, only one of them is required. This action abstracts and simplifies the entries tracking, ensuring internally the order and transforming each track action to a Kenjo user attendance format.

Example: Three calls for the employee E-111 to the /track-time endpoint contains the following data:
T1: 2021-01-01T08:00:00
T2: 2021-01-01T09:00:00
T3: 2021-01-01T10:00:00
The three calls order is T1, T2, T3.

Then in Kenjo there will be 2 attendance pairs:
1: 08:00 / 09:00
2: 10:00 / --:--
The second pair is open, with no endTime info, until a new one comes.

If there is a new track: 2021-01-01T12:00:00, then the result will be:
1: 08:00 / 09:00
2: 10:00 / 12:00
If the track is 2021-01-01T07:00:00 instead, then the previous tracks are reordered to be consistent with concept of attendance pairs:
1: 07:00 / 08:00
2: 09:00 / 10:00

Language
URL
Click Try It! to start a request and see the response here!