Discussions

Ask a Question
Back to All

ZEITERFSSSUNG API ERROR Start time has to be smaller than end time

Hallo alle,
Ich versuche mit dem API Endpunkt

/company/attendances/
einen neuen Zeiteintrag zu erstellen, folgender Fehler wird angezeigt.

{
"success": false,
"error": {
"code": 400,
"message": "Error when trying to insert Attendances periods rows",
"detailed_message": [
{
"success": false,
"error_msg": "Start time 2022-10-20T12:13:00.000Z has to be smaller than end time 2022-10-20T11:16:00.000Z",
"id": null,
"employee": xxxx,
"date": "2022-10-20",
"start_time": "15:48",
"end_time": "16:47",
"break": 0,
"comment": "",
"project_id": xxxx
}
]
}
}
obwohl alles mit der API Anfrage stimmt. Beginn und ende sind korrekt hinterlegt

array:1 [
"attendances" => array:1 [
0 => array:7 [
"employee" => xxxx
"date" => "2022-10-20"
"start_time" => "15:48"
"end_time" => "16:47"
"break" => 0
"project_id" => xxxx
"comment" => ""
]
]