Add time entry
Add manual time to a member on a project.
POST https://cotlet.dev/api/v1/hubstaff/users/{user_id}/time-entries
write Confirm
Adds a manual time entry for a member: project, start time and seconds tracked, with an optional task. Hubstaff requires a note by default and records manual time with 0 percent activity. If your organization requires approval for added time, the entry cannot be added this way and the call says so. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| user_id integer required | integer | Member ID from list_members. |
| project_id integer required | integer | Project ID from list_projects. |
| start_time datetime required | datetime | Start of the entry, ISO 8601. |
| tracked integer required | integer | Seconds tracked. |
| task_id integer | integer | Task ID from list_tasks. |
| billable boolean | boolean | Default: the project setting. |
| note string | string | Reason for the entry. Required unless your organization made it optional. |
Request
curl -X POST https://cotlet.dev/api/v1/hubstaff/users/1/time-entries \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1}' result = client.call("hubstaff", "add_time_entry", {"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1}) const result = await cotlet.call('hubstaff', 'add_time_entry', {"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1}); cotlet call hubstaff add_time_entry --data '{"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1}' Example response
{
"success": true,
"user_id": 3011,
"project_id": 90311,
"start_time": "2026-10-14T14:00:00Z",
"tracked": 5400
}