A different work schedule for one employee on one date (afwijkend werkschema). It replaces the team's shift for that day. There is no navigation to the employee; join on employee_id.
Label in Fledge: Afwijkend werkschema per medewerker per dag
| URL | https://odata-api.fledge.nl/v2-8/ShiftDeviations |
|---|---|
| Key | administration_idemployee_idshift_deviation_date |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEFINANCIEELBEHEER |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/ShiftDeviations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=employee_id,shift_deviation_date,employee_schedule_header_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ShiftDeviations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'employee_id,shift_deviation_date,employee_schedule_header_id');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/ShiftDeviations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("employee_id,shift_deviation_date,employee_schedule_header_id"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/ShiftDeviations(administration_id=1,employee_id={employee_id},shift_deviation_date={shift_deviation_date})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
employee_idkey | Int32 | Mannummer |
shift_deviation_datekey | Date | Datum met afwijkend werkschema voor persoon. The date the deviation applies to. |
employee_schedule_header_id | Int32 | Schemanummer The work schedule used that day instead of the team's. |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
EmployeeScheduleHeader | EmployeeScheduleHeaders | one |