Pagination
We support OData pagination using $top and $skip as part of the query string.
curl https://api.urus.co.uk/hr/v2/employees?$skip=250&$top=250 \
-H "authorization: Bearer <access token>" \
The number of records per Page is different per endpoint. The table in this topic shows what the max record counts are per endpoint. You can request fewer records per page, but you cannot change the built-in maximum.
You can optionally include a header instead of $top, to override the default page size:
curl https://api.iris.co.uk/hr/v2/employees \
-H "authorization: Bearer <access token>" \
-H "prefer: odata.maxpagesize=1"
When using the $skip as part of the request url, we recommend you include the $top parameter even if it is the same as the max number of records returned. This is because the default number of returned records could increase in future.
Max records per endpoint
| Endpoint | Current Records Returned |
|---|---|
| /Employees | 1000 |
| /Jobs | 250 |
| /EmergencyContacts | 250 |
| /WorkingPatternOverrideComponents | 250 |
| /WorkingPatternOverride | 250 |
| /WorkingPatternsComponents | 250 |
| /WorkingPatterns | 250 |
| /AbsenceReason | 250 |
| /Absence | 250 |
| /AbsenceDays | 250 |
| /Entitlement | 250 |
| /Bankdetails | 250 |
| /Benefits | 250 |
| /UserDefinedFieldsSchema | 250 |
| /UserDefinedFields | 250 |
| /Hierarchy | 250 |
| /PublicHoliday | 250 |
| /Positions | 5000 |