• If current user has no work-time entries for the date, reponds with start_time, end_time, and total_break_minutes.
  • If current user already has entries for the date, responds with start_time only.
  • If current user can have both flex and paid overtime, also adds remaining_work_minutes to the response.
  • Responds with {} if defaults cannot be calculated.

Errors

Code Description
422 Date param is invalid.

Examples

{
  "start_time": "2025-12-31T06:30:00.000Z",
  "end_time": "2025-12-31T15:30:00.000Z",
  "total_break_minutes": 60,
  "remaining_work_minutes": 450
}

Params

Param name Description
date
optional

Date, e.g. "2025-12-31". Defaults to current date (in Europe/Helsinki timezone).

Validations:

  • Must be a String