Create time entry
harvest_create_time_entryCreate a time entry. Requires project_id, task_id and spent_date. Provide hours to log a specific duration; OR provide started_time (+ optional ended_time) for a timestamped entry; OR omit both to start a running timer (on a timestamp-tracking account). Use harvest_list_project_assignments to find valid project_id + task_id. Harvest REST: POST /time_entries. WRITE — creates data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Duration in decimal hours, e.g. 1.5. Omit to start a running timer. | |
| notes | No | Notes for the time entry. | |
| task_id | Yes | The task id within the project (required). | |
| user_id | No | Log on behalf of another user (defaults to the authenticated user; requires permission). | |
| ended_time | No | End time for a timestamped entry, e.g. '9:30am'. | |
| project_id | Yes | The project id to log time against (required). | |
| spent_date | Yes | The date the time was spent, yyyy-mm-dd (required). | |
| started_time | No | Start time for a timestamped entry, e.g. '8:00am'. |