You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
end_date date
Last day of the period to be queried. It is inclusive, so the result ends on end_date including absences from the end_date
So the first result can be attributed to a confusing wording (does "absences from the end_date" mean "absences starting up to end_date? One would expect end_date to delimit the last date to pull absences from)
However, the second result is more strange: Both the start_date and end_date are way beyond the range in the query.
Does the query return any absences which intersect the time interval defined by start_date and end_date? And if so, is this interval closed, half-open or open?
The text was updated successfully, but these errors were encountered:
mdbenito
changed the title
start_date and end_date in GET do not work as advertised
start_date and end_date in GET /company/time-offs do not work as advertised
Mar 8, 2022
@mdbenito glad I'm not the only one who is confused, I really believe they need a current endpoiint or status on the employee to avoid all of this time/date comparison.
curl --request GET \ --url 'https://api.personio.de/v1/company/time-offs?start_date=2022-03-07&end_date=2022-03-09&limit=200&offset=0'
returns results like:
and
The documentation states
So the first result can be attributed to a confusing wording (does "absences from the
end_date
" mean "absences starting up toend_date
? One would expectend_date
to delimit the last date to pull absences from)However, the second result is more strange: Both the
start_date
andend_date
are way beyond the range in the query.Does the query return any absences which intersect the time interval defined by
start_date
andend_date
? And if so, is this interval closed, half-open or open?The text was updated successfully, but these errors were encountered: