v1
latestOpenAPI 3.0.02026-07-14800227.2 KBReturns expected time per user for a given date range (paginated).
Returns a paginated list of the daily Net Expected Time per user for the given date range. This value represents the contractual working hours after subtracting deductions from Public Holidays and approved Time Off (based on either the Shiftplan or the theoretical work schedule pattern). Limitations:
- The date range (from and to) must not exceed 90 days.
- The limit parameter is capped at 100 users per page.
Query parameters
Start date of the range (YYYY-MM-DD). The range from-to must not exceed 90 days.
End date of the range (YYYY-MM-DD). The range from-to must not exceed 90 days.
Optional filter. The company id of the Kenjo employee.
Optional filter. The office id of the Kenjo employee.
Optional filter. The department id of the Kenjo employee.
Optional filter. Kenjo employee id(s). Two formats are accepted:<br><br>1. A single employee id.<br>Example: userId=80a2db290da29e126a18789c<br><br>2. Comma-separated list of up to 15 employee ids.<br>Example: userId=80a2db290da29e126a18789c,80a2db290da29e126a18789b,80a2db290da29e126a187891
Number of records to skip for pagination. If not provided, defaults to 0.
Number of users to return per page. If not provided, defaults to 50. The value is capped at 100.
Headers
A valid bearer token.
Response
OK.
Example response
{
"data": [
{
"userId": "80a2db290da29e126a18789a",
"days": [
{
"date": "2020-01-01",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-02",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-03",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-04",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-05",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-06",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-07",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-08",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-09",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-10",
"expectedHours": 8,
"expectedMinutes": 480
}
],
"totalExpectedHours": 64,
"expectedMinutes": 3840
},
{
"userId": "80a2db290da29e126a18789b",
"days": [
{
"date": "2020-01-01",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-02",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-03",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-04",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-05",
"expectedHours": 8,
"expectedMinutes": 480
},
{
"date": "2020-01-06",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-07",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-08",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-09",
"expectedHours": 0,
"expectedMinutes": 0
},
{
"date": "2020-01-10",
"expectedHours": 0,
"expectedMinutes": 0
}
],
"totalExpectedHours": 40,
"expectedMinutes": 2400
}
],
"metadata": {
"count": 2,
"offset": 1,
"limit": 50,
"total": 2
}
}