Discussions

Ask a Question
Back to All

POST attendances: Bitte geben Sie attendances ein, um fortzufahren.

Hello we try to POST attendances and we just get this error:

{
    "success": false,
    "error": {
        "code": 0,
        "message": "Bitte geben Sie attendances ein, um fortzufahren.",
        "errors": {
            "attendances": [
                "Bitte geben Sie attendances ein, um fortzufahren."
            ]
        }
    }
}

This is our JSON-Body. Of course the employer-id is just an example here:

{
"attendances": [
{
"employee": 12345,
"date": "2018-09-05",
"start_time": "08:00",
"end_time": "11:00",
"break": 15,
"comment": "Some comment"
}, {
"employee": 12345,
"date": "2018-09-06",
"start_time": "09:00",
"end_time": "18:00",
"break": 30,
"comment": "Another comment"
}
]
}

The content-type in our header is "application/json".

What's wrong with our POST-Request?