post https://api.bamboohr.com/api/gateway.php//v1/timetracking/record
Bulk add/edit hour records
Sample request 1:
[
{
"timeTrackingId": "9abf58d1-6657-11e6-b28d-0800272a335a",
"employeeId": "40342",
"divisionId": "17964",
"departmentId": "17939",
"jobTitleId": "17924",
"payCode": "002455",
"dateHoursWorked": "2017-04-15",
"payRate": "27.7765",
"rateType": "REG",
"hoursWorked": "4.5760",
"jobCode": "123456",
"jobData": "9abf58d1-6657-11e6-b,9abf58d1-6657-11e6-a"
},
{
"timeTrackingId": "1010",
"employeeId": "7",
"dateHoursWorked": "2017-04-16",
"rateType": "REG",
"hoursWorked": "5.5",
}
]
Sample response 1:
[
{
"success": true,
"response": {
"id": "9abf58d1-6657-11e6-b28d-0800272a335a"
}
},
{
"success": true,
"response": {
"id": "1010"
}
}
]
Sample request 2:
[
{
"timeTrackingId": "1510",
"employeeId": "7",
"divisionId": "18029",
"departmentId": "18028",
"jobTitleId": "18027",
"dateHoursWorked": "2017-04-15",
"rateType": "REG",
"hoursWorked": "4.5760"
},
{
"timeTrackingId" : "1010",
"employeeId" : "7",
"dateHoursWorked" : "2017-04-16",
"rateType" : "OT",
"hoursWorked" : "6.5"
}
]
Sample response 2:
[
{
"success": true,
"response": {
"id": "1510"
}
},
{
"success": false,
"response": {
"message": "Only hours worked can be edited on an update. (rateType)
is either missing or not allowed to be updated"
}
}
]
Notes
If adjusting a time tracking entry the entire original timeTracking object must be presented and only the hoursWorked may be changed