Add worked hours
Add a timesheet entry for an employee.
POST https://cotlet.dev/api/v1/shiftbase/employees/{employee_id}/worked-hours
write Confirm
Creates one entry in the Timesheet tab with status pending and returns its id and hours. It uses the department and shift of the employee for that day. With notify_employee set, the employee gets a message. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| employee_id string required | string | Employee id from list_employees. |
| date string required | string | Day of the shift, YYYY-MM-DD. |
| start string required | string | Start time, HH:MM. |
| end string required | string | End time, HH:MM. |
| unpaid_break_min number | number | Unpaid break in minutes. It is not counted as worked time. |
| note string | string | Note on the shift. |
| notify_employee boolean | boolean | Send the employee a notification about the entry. |
Request
curl -X POST https://cotlet.dev/api/v1/shiftbase/employees/employee_8c41d2/worked-hours \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"date","start":"start","end":"end"}' result = client.call("shiftbase", "add_worked_hours", {"employee_id":"employee_8c41d2","date":"date","start":"start","end":"end"}) const result = await cotlet.call('shiftbase', 'add_worked_hours', {"employee_id":"employee_8c41d2","date":"date","start":"start","end":"end"}); cotlet call shiftbase add_worked_hours --data '{"employee_id":"employee_8c41d2","date":"date","start":"start","end":"end"}' Example response
{
"entry_id": "40130",
"employee": "Lena Ortiz",
"date": "2026-10-21",
"start": "09:00",
"end": "17:00",
"hours": 7.5,
"status": "pending"
}