Log time entries
From a time-tracking tool: team member, duration or range, idempotency, the screen’s rules, frozen price.
Bring into QuoSuite the time logged in a time-tracking tool, a mobile app or a time clock: each time entry joins the person’s weekly timesheet, to be submitted, approved and then billed. Key: project_time:write — it writes neither projects nor tasks.
1. Who, on what
An entry concerns a project (and, if needed, a task of that project) and a member of its team: an account (userId) or an HR employee (employeeId, with or without an account). GET /projects/{id} gives the team (members[]); GET /projects/people, the identifiers.
2. Log a time entry
A duration:
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/projects/time-entries' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"projectId": "0a73f78a-fad4-4c93-8dd6-84c05852cb4b",
"taskId": "4449db70-8a60-442e-893b-c58addfdf27e",
"userId": "aaaaaaaa-0000-4000-8000-0000000000a2",
"date": "2026-11-17",
"minutes": 90,
"description": "Shelving assembly",
"billable": true
}'or a range (startedAt, endedAt, ISO 8601), from which the duration is deduced. Always send Idempotency-Key (for example the clocking’s identifier in your tool): a retry never counts the same time twice.
The response gives the created entry: status: DRAFT, the week’s timesheet (timesheetId), the frozen hourly price (billRate, project currency) and the billable value (billAmount). The internal cost is never exposed.
3. The screen’s rules apply
Without userId or employeeId, the request is refused at validation (400 VALIDATION_FAILED): a token has no “me”. Then:
detail.rule | Refusal (422) |
|---|---|
PROJECT_TIME_NOT_MEMBER | the person is not on the project’s team |
PROJECT_TIME_TASK_OTHER_PROJECT | the task belongs to another project |
PROJECT_TIME_FUTURE | day in the future (workspace time zone) |
PROJECT_TIME_PROJECT_CLOSED | archived or cancelled project |
PROJECT_TIME_DAY_FULL (409) | more than 24 h on the day for this person |
PROJECT_TIME_OVERLAP (409) | range overlapping another range of the person |
The last two are conflicts (409 CONFLICT): fix the source data rather than retrying.
4. What next
The entry is a draft: the person (or their manager) submits it from their timesheet, then a manager approves it — in the application. Follow progress with GET /projects/time-entries?status=APPROVED or the project_timesheet.approved event (see Get a timesheet).