Skip to main content

Create Time Entry

Create a complete time entry by hand — e.g. when someone forgot to clock in. Manual entries are stamped with source manager.

Endpoint​

POST /v1/staff/time-entries

Authentication​

Requires an API key with the staff:write scope.

Request Body​

FieldTypeRequiredDescription
staff_idintegerYesThe staff member
clock_in_atstring (ISO 8601)YesActual start of work
clock_out_atstring (ISO 8601)NoActual end of work; omit for a still-open entry
break_minutesintegerNoBreak time to deduct (default 0)
notesstringNoFree-text note (max 255 chars)

Response​

Success (201 Created)​

{
"data": {
"id": 14,
"staff_id": 5,
"clock_in_at": "2026-06-12T09:00:00+00:00",
"clock_out_at": "2026-06-12T17:00:00+00:00",
"break_minutes": 30,
"worked_minutes": 450,
"source": "manager",
"notes": "Forgot to clock in"
},
"meta": { "request_id": "req_abc123", "timestamp": "2026-06-13T10:00:00+00:00" }
}

Errors​

StatusCodeDescription
422validation_failedMissing/invalid fields, or cross-supplier staff_id
422entry_invalidClock out before clock in, break longer than the entry, or staff already clocked in (open entry)

Example Request​

curl -X POST "https://app.equipdash.com/api/v1/staff/time-entries" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"staff_id": 5,
"clock_in_at": "2026-06-12T09:00:00Z",
"clock_out_at": "2026-06-12T17:00:00Z",
"break_minutes": 30,
"notes": "Forgot to clock in"
}'