Einzelne Abwesenheit abrufen
Mit diesem Endpunkt können Sie eine einzelne Abwesenheit abrufen.
Request
GET /api/v1/absences/:id
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/absences/1' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'
Response
{
"data": {
"id": 1,
"employee_id": "max.mustermann",
"type": 0,
"start_date": "2024-01-15T00:00:00.000000Z",
"end_date": "2024-01-16T00:00:00.000000Z",
"hours": "0.0000000000",
"from": null,
"to": null,
"note": null,
"approved": true,
"timezone": null,
"created": null,
"modified": null,
"absence_reason_id": "UB",
"absenceReason": {
"name": "UB",
"comment": "Urlaub|en:Holiday",
"approve": 1,
"allow_self_entry": 1,
"allow_half_day_holiday": 1,
"allow_hours_of_vacation": 1,
"anyone_can_see_name": 1,
"color": "#f39c12",
"type": {
"id": 0,
"name": "annual holiday"
},
"client_calendar_category": null,
"inform_employee_upon_approval_or_revocation": 1,
"created": null,
"modified": null
},
"leaveApprovalApplication": {
"id": 1,
"employee_id": "max.mustermann",
"requested_at": "2024-01-10 13:04:34",
"number_of_days": "2.0000000000",
"start_date": "2024-01-15",
"end_date": "2024-01-16",
"note": "Familienurlaub",
"status": {
"id": 1,
"name": "Genehmigt"
},
"recipient": "vorgesetzter@beispiel.de",
"recipient_cc": "personal@beispiel.de",
"recipient_bcc": null,
"status_edited_since": "2024-01-11 10:30:00",
"status_edited_by": "vorgesetzter.nutzer",
"status_note": "Genehmigt - Schönen Urlaub!",
"absence_text": "Urlaubsantrag für Familienausflug"
}
}
}