v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
ProjectManagement > TimeRecord

Creates a Time record

What does it do?

"This endpoint is used to create time records. A time record is an entity that establishes a mandatory relationship between project_worker and attendance_shift_id, and optionally with subproject. For a successful creation of a time_record, the project_worker must be assigned, and the associated project must be active."

Who can use it?

Only companies who have enabled the projects_management feature and users with the permission to create time_records.

post/api/2026-07-01/resources/project_management/time_records

Request body

project_worker_idstring required
attendance_shift_idstring
subproject_idstring

Response

CREATED

idstring required

Id of the time record

project_worker_idstring required

Id of the project worker

attendance_shift_idstring

Id of the attendance shift

subproject_idstring

Id of the subproject

datestring

Reference date of the shift

imputed_minutesinteger

Minutes difference between the clock in and clock out

clock_instring

Clock in time

clock_outstring

Clock out time

observationsstring

Comment for the time record

Example response

{
  "id": "1",
  "project_worker_id": "1",
  "attendance_shift_id": "1",
  "subproject_id": "1",
  "date": "2021-01-01",
  "imputed_minutes": 480,
  "clock_in": "2021-01-01T08:00:00Z",
  "clock_out": "2021-01-01T17:00:00Z",
  "observations": "Comment for the time record"
}