v1

latestOpenAPI 3.0.02026-07-14132334.4 KB

This endpoint is responsible for adding attendance data for the company employees. It is possible to add attendances for one or many employees at the same time. The payload sent on the request should be a list of attendance periods, in the form of an array containing attendance period objects.

post/company/attendances

Request body

Example request

{
  "attendances": [
    {
      "break": 120,
      "comment": {
        "$ref": "#/components/schemas/UpdateAttendancePeriodRequest/example/comment"
      },
      "date": "2017-01-18",
      "employee": 1234,
      "end_time": "18:00",
      "start_time": "08:00"
    },
    {
      "break": 35,
      "comment": "I was productive as hell",
      "date": "2017-01-17",
      "employee": 1235,
      "end_time": "12:00",
      "start_time": "09:00"
    }
  ]
}

Response

The attendance periods were created successfully

successboolean required