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

URLhttps://odata-api.fledge.nl/v2-8/ShiftDeviations
Keyadministration_idemployee_idshift_deviation_date
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEFINANCIEELBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
employee_idkeyInt32Mannummer
shift_deviation_datekeyDateDatum met afwijkend werkschema voor persoon.

The date the deviation applies to.

employee_schedule_header_idInt32Schemanummer

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.

NavigationEntity set
AdministrationAdministrationsone
EmployeeScheduleHeaderEmployeeScheduleHeadersone
Wingman