Discussions

Ask a Question
Back to All

Attendances-Endpoint: Working with attendances that have not yet been completed

Hello dear Personio developers,

in the Personio web app you can start an attendance without specifying an end time.
This entry is also shown in the GET /company/attendances endpoint.
There the value end_time is then given as null.
So far very nice and understandable.

But I cannot create such a record via the POST /company/attendances endpoint.
If I specify a null for end_time there, then I get such a response:

{
    "success": false,
    "error": {
        "code": 0,
        "message": "The given data was invalid.",
        "errors": {
            "attendances.0.end_time": [
                "Bitte geben Sie attendances.0.end_time ein, um fortzufahren."
            ]
        }
    }
}

Do you plan to create such a record also via the API,
so that in the Web App such functions do not remain exclusive.

Background: We have integrated a large "Start Attendance" button in an internal application.
And we would like to save this attendance record in Personio and not store it temporarily until the colleague has finished the attendance in the internal application.
This would have the advantage that our colleagues could also see and end the attendance later via the Personio web app.

Greetings
Philip