post https://api.personio.de/v1/company/attendances
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 | required |
---|---|---|---|
employee | unsigned integer | the employee id (as returned from the get request) | yes |
date | string in format "YYYY-MM-DD" | date of the attendance period | yes |
start_time | string in format "HH:MM" | start time | yes |
end_time | string in format "HH:MM" | end time | no |
break | unsigned integer | break in minutes | yes |
comment | string | comment | no |
project_id | integer | the project id | no |