Discussions
Bug in v1 time-off
Hello everybody,
I've been creating time-offs via v1 API for years and all of the sudden it stopped working.
I've tried with the online API test:
curl --request POST
--url https://api.personio.de/v1/company/time-offs
--header 'accept: application/json'
--header 'authorization: Bearer papi-'
--header 'content-type: application/x-www-form-urlencoded'
--data half_day_start=false
--data half_day_end=false
--data employee_id=XXXXX
--data time_off_type_id=XXXXX
--data start_date=2025-10-09
--data end_date=2025-10-09
--data skip_approval=true
--data comment=API-Test
In my understanding this should create a one-day time-off as per
https://developer.personio.de/changelog/absence-period-creation-update
However, I get return code 422 ad this message:
{
"success": false,
"error": {
"message": "Bitte geben Sie half day start ein, um fortzufahren. (and 1 more error)",
"code": 0,
"error_data": {
"half_day_start": [
"Bitte geben Sie half day start ein, um fortzufahren."
],
"half_day_end": [
"Bitte geben Sie half day end ein, um fortzufahren."
]
}
}
}
Could You let me know what I'm overlooking? Appearently half_day_start = false and half_day_end = false seem to be unsupported.
Thanks,
Osama
