improved
Attendance API: added "status" attribute and enabled filtering by "includePending"
almost 4 years ago by Matthias Mikoschek
- We just added the attribute "status", which indicates the status of an Attendance Period (“approved”, “pending”).
- You're now also able to get the results using the parameters "includePending”, which returns Attendance Periods with both “pending” and “approved” status. Find more information in the API reference.
{“success”: true,
“metadata”: {
“total_elements”: 2,
“current_page”: 0,
“total_pages”: 0
},
“data”:[
{
“id”: 1234,
“type”: “AttendancePeriod”,
“attributes”: {
“employee”: 1,
“date”: “2020-12-21”,
“start_time”: “13:30”,
“end_time”: “16:10”,
“break”: 0,
“comment”: “Postman 2",
“updated_at”: “2021-02-17T16:56:53+00:00",
“status”: “confirmed”,
“is_holiday”: false,
“is_on_time_off”: false
}
}
],
“offset”: 0,
“limit”: 200
}