Discussions
Retrieve All Absences WITH Person ID (missing include / field parameter?)
When using the Personio API, the absence-periods endpoint does not seem to provide a field or include parameter to directly retrieve the Person ID together with the absence data.
Currently, the only option appears to be fetching absences per person individually, e.g.:
GET /v2/absence-periods/{id}1
GET /v2/absence-periods/{id}2
...
This would result in hundreds or thousands of requests (e.g. for 1000 users), which creates unnecessary system load and also delay in retrieving Data.
Is there a way to retrieve all absences including their corresponding Person IDs in a single call (or multiple because of paging), similar to something like:
GET /v2/absence-periods?include=Person
or
GET /v2/absence-periods?field=Person
If not, is this functionality planned?
Also if there is no way to include the Person ID directly, is it acceptable from your side to send thousands of individual requests (one per person) in productive use, since there seems to be no alternative? (i know there will be a limitation in calls Per Minute)
Sorry if this Question is already exisiting, i didnt find any information about that yet..