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 body example:

{
    "attendances": [
        {
            "employee": 12345,
            "date": "2018-09-05",
            "start_time": "08:00",
            "end_time": "11:00",
            "break": 15,
            "project_id": 5,
            "comment": "Some comment"
        }, {
            "employee": 12345,
            "date": "2018-09-06",
            "start_time": "09:00",
            "end_time": "18:00",
            "break": 30,
            "project_id": null,
            "comment": "Another comment"
        }
    ]
}

Attendance period model description:

attribute

type

description

employee

unsigned integer

the employee id (as returned from the get request)

date

string in format "YYYY-MM-DD"

date of the attendance period

start_time

string in format "HH:MM"

end_time

string in format "HH:MM"

break

unsigned integer

break in minutes

comment

string

optional comment

project_id

integer

the project id

Language
Authentication
Bearer
Click Try It! to start a request and see the response here!