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

Parameters: add_time_entry
NameTypeDescription
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
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}'
Python
result = client.call("hubstaff", "add_time_entry", {"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1})
Node.js
const result = await cotlet.call('hubstaff', 'add_time_entry', {"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1});
CLI
cotlet call hubstaff add_time_entry --data '{"user_id":1,"project_id":1,"start_time":"2026-10-01T09:00:00Z","tracked":1}'

Example response

JSON

{
  "success": true,
  "user_id": 3011,
  "project_id": 90311,
  "start_time": "2026-10-14T14:00:00Z",
  "tracked": 5400
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.