post https://api.bamboohr.com/api/gateway.php//v1/time_tracking/hour_entries/store
Add or edit timesheet hour entries.
Example Request
{
"hours": [
{
"employeeId": 10,
"date": "2024-02-01",
"hours": 8,
"note": "Worked from 9 to 5.",
"projectId": 1,
"taskId": 3
}
]
}
Example Response
[
{
"id": 200,
"employeeId": 10,
"type": "hour",
"date": "2024-02-01",
"start": null,
"end": null,
"timezone": null,
"hours": 8,
"note": "Worked from 9 to 5.",
"projectInfo": {
"project": {
"id": 1,
"name": "Project A"
},
"task": {
"id": 3,
"name": "Task 1"
}
}
}
]