v1
Task Time
task-time

Create Scoped Work Session

Changed on

Backfill a project or work-stream session with explicit timestamps.

The scoped twin of POST /tasks/{task_id}/time-entries, and the only way labour that was never clocked live can reach a project's P&L. Omit clock_out_at to leave the session open.

post/api/v1/work-sessions

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

ScopedWorkSessionCreate required

Body for POST /work-sessions: backfill a project or work-stream session.

The scoped twin of TaskTimeEntryCreate. scope is constrained to the two non-task values here rather than checked in the service, so a bad value is a 422 naming the field instead of a sentence about an unsupported scope. Omit clock_out_at to leave the session open, same as the task route.

scope, 'work_stream' | 'project' required

What the hours are attributed to: work_stream or project

scope_id, integer required

Work stream ID or project ID

personnel_id, integer required

Personnel ID to log time for

clock_in_at, string required

ISO-8601 clock-in timestamp

clock_out_at, string nullable

ISO-8601 clock-out timestamp; omit to leave the session open

Response

Successful Response

unknown required

Changes