Add Timeclock Entry
add_timeclock_entryAdd an employee's timeclock entry with local start/end times. Identify by employee code or email; only open timesheets accept entries.
Instructions
Add a timesheet/timeclock entry for an employee. Times are the employee's LOCAL time in 'yyyy-mm-dd hh:mm' format. Entries can only be added to OPEN timesheet sequences, and the timeclock module must be enabled for the company and the employee's timesheet template. Identify the employee with either employee_code or employee_email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes to record against the entry | |
| duration | No | Total duration in hours. If omitted it is calculated from start/end time; if less than the calculated duration the difference is recorded as break time | |
| end_time | Yes | Ending date/time, employee local time, format 'yyyy-mm-dd hh:mm' | |
| start_time | Yes | Starting date/time, employee local time, format 'yyyy-mm-dd hh:mm' | |
| project_name | No | Name of an existing project to record the time against | |
| activity_name | No | Name of an existing project activity to record the time against | |
| employee_code | No | The employee code (this or employee_email is required) | |
| break_duration | No | Break time in hours, deducted from the duration (sent to the API as 'break') | |
| employee_email | No | The employee email (this or employee_code is required) |