Discussions

Ask a Question
Back to all

Update Attendance Period Bug

Hello all,

we are experiencing an issue with the update attendance period endpoint:

Usually we use it to close BREAK attendances. It was all working without any problems, but since aproximately a month, we have the issue, that the attendance period type is being changed to "WORK" when we try to close a BREAK-Period.

For example, we had this attendance period:

[
{
"approval": {
"status": "PENDING"
},
"comment": "Buero",
"created_at": "2025-10-09T13:40:13.377Z",
"end": null,
"id": "80685ff9-162f-4821-a143-2ca2e2c5973d",
"is_auto_generated": false,
"person": {
"id": "27898057"
},
"project": null,
"start": {
"date_time": "2025-10-09T15:37:00"
},
"type": "BREAK",
"updated_at": "2025-10-09T13:40:13.476Z"
}
]

We tried to close it with this request:

curl --request PATCH
--url 'https://api.personio.de/v2/attendance-periods/80685ff9-162f-4821-a143-2ca2e2c5973d?skip_approval=true'
--header 'accept: application/problem+json'
--header 'authorization: Bearer papi-bearer-placeholder'
--header 'content-type: application/json'
--data '
{
"end": {
"date_time": "2025-10-09T15:39:45"
},
"comment": "Test"
}
'

As a result, we get 204 Success Response. But the attendance is a WORK attandance after that.

I already tried, sending the type in the body, even though this was never necessary and is not documented. But it didn't help either.

Do you have any idea, why this happens?