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:

attributetypedescriptionrequired
employeeunsigned integerthe employee id (as returned from the get request)yes
datestring in format "YYYY-MM-DD"date of the attendance periodyes
start_timestring in format "HH:MM"start timeyes
end_timestring in format "HH:MM"end timeno
breakunsigned integerbreak in minutesyes
commentstringcommentno
project_idintegerthe project idno
Language
Credentials
Bearer
Click Try It! to start a request and see the response here!