Alle Projektzeiten abrufen
Mit diesem Endpunkt können Sie eine paginierte Liste aller Projektzeiten abrufen.
Request
GET /api/v1/attendances
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/attendances' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'
Response
{
"data": [
{
"id": 1,
"date": "2024-07-20T00:00:00.000000Z",
"from": "11:30:00",
"to": "12:30:00",
"employee_id": "max.mustermann",
"duration": 1,
"note": "ZEP für internen Gebrauch einrichten",
"billable": true,
"work_location_id": null,
"activity_id": "im",
"start": null,
"destination": null,
"vehicle_id": null,
"private": null,
"passengers": null,
"km": null,
"direction_of_travel": {
"id": 1,
"name": "continue"
},
"project_id": 16,
"project_task_id": 7,
"invoice_item_id": null,
"ticket_id": null,
"subtask_id": null,
"work_location_is_project_relevant": true,
"department_id": 1,
"project_release": null,
"project_released_at": null,
"project_released_by": null,
"created": "2024-07-20T11:30:00.000000Z",
"modified": "2024-07-20T12:30:00.000000Z"
},
{
"id": 2,
"date": "2024-06-01T00:00:00.000000Z",
"from": "00:00:00",
"to": "00:00:00",
"employee_id": "erika.musterfrau",
"duration": 4,
"note": "Implementierung",
"billable": true,
"work_location_id": null,
"activity_id": "000",
"start": null,
"destination": null,
"vehicle_id": null,
"private": null,
"passengers": null,
"km": null,
"direction_of_travel": {
"id": 1,
"name": "continue"
},
"project_id": 10,
"project_task_id": 1,
"invoice_item_id": null,
"ticket_id": null,
"subtask_id": null,
"work_location_is_project_relevant": true,
"department_id": 1,
"project_release": {
"id": 1,
"name": "freigegeben"
},
"project_released_at": "2024-06-24 17:46:25",
"project_released_by": "max.mustermann",
"created": "2024-06-01T08:00:00.000000Z",
"modified": "2024-06-01T16:00:00.000000Z"
}
]
}
Optionale Parameter
- Name
start_date
- Type
- date | Y-m-d
- Description
Erster Tag des abzufragenden Zeitraums. Die Angabe ist inklusiv, d.h. der als start_date angegebene Tag wird auch in den Ergebnissen berücksichtigt.
- Name
end_date
- Type
- date | Y-m-d
- Description
Letzter Tag des abzufragenden Zeitraums. Er ist inklusiv, d. h. der als end_date angegebene Tag wird in den Ergebnissen ebenfalls berücksichtigt.
- Name
employee_id
- Type
- string
- Description
Der Username des Mitarbeiters, dessen Projektzeiten abgefragt werden sollen.
- Name
project_id
- Type
- integer
- Description
Die ID des Projekts, dessen Projektzeiten abgefragt werden sollen.
- Name
ticket_id
- Type
- integer
- Description
Die ID des Tickets, dessen Projektzeiten abgefragt werden sollen.
- Name
limit
- Type
- integer
- Description
Attribut zur Begrenzung der Einträge pro Seite