Attendance
Import attendance data
This endpoint allows you to import attendance punches (entries) for employees.
Before using this endpoint:
- Explore Import attendance punches into Bob via Public API for detailed information about this endpoint.
- It's important to fully understand how to use this endpoint correctly to avoid errors in the import process.
post/attendance/import/{importMethod}
Path parameters
importMethod'aggregate' | 'immediate' required
Indicates if the provided data should be processed via an aggregation engine or immediately. <ul>Aggregate - will add the logs to a temporary location, and an aggregation job will process the data asynchronously.</ul><ul>Immediate - will insert the records as-is.</ul>
Request body
Example request
{
"requests": [
{
"id": "12356733644",
"clockIn": "2022-06-12T08:00",
"clockOut": "2022-06-12T17:00",
"entryType": "work"
}
],
"dateTimeFormat": "yyyy-MM-dd hh:mm a"
}Response
Records imported
Example response
{
"total": 140,
"imported": 137,
"notImported": 3,
"errors": [
"Clock-In at 2022-04-07T07:00 for employee ID 2686495591877312534 is invalid",
"Invalid employee Id: ABCD12345567",
"Cannot find employee for id 5986745"
]
}