latestOpenAPI 3.0.02026-08-1061522.5 KB
24b687a6e18c
Shifts
Returns upcoming or unassigned shifts
Get employee upcoming or unassigned shifts, starting from today
get/users/shifts
Query parameters
filter'upcoming' | 'unassigned' required
Choose upcoming or unassigned shifts
Response
All shifts are sorted by the start time in ascending order (limited to 20 shifts, in published period, up to 90 days in the future)
Example response
{
"shifts": [
{
"id": "fQRK0r5s9S4dXwRa_u5vjIKfHzBhzO9wpCjJ583dRX6.oxr63g--",
"employeeName": "John Doe",
"from": "2019-02-01 09:00:00",
"to": "2019-02-01 17:00:00",
"shiftType": "Day Shift",
"unit": "Unit name",
"section": "Section name",
"breaksDuration": 60,
"breaks": [
{
"start": "2019-02-01 11:30:00",
"end": "2019-02-01 12:30:00"
}
]
}
]
}