A work schedule (werkschema) for one day: presence, breaks and the working hours that follow from them.

Label in Fledge: Medewerker werkschema header

URLhttps://odata-api.fledge.nl/v2-8/EmployeeScheduleHeaders
Keyadministration_idemployee_schedule_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
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/EmployeeScheduleHeaders" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=employee_schedule_header_id,hours,description' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/EmployeeScheduleHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'employee_schedule_header_id,hours,description');
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/EmployeeScheduleHeaders" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("employee_schedule_header_id,hours,description"),
    "$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/EmployeeScheduleHeaders(administration_id=1,employee_schedule_header_id={employee_schedule_header_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
employee_schedule_header_idkeyInt32Schemanummer
descriptionStringOmschrijving werkschema
hoursDecimalTotaal aantal werkuren in het schema.

The working hours of the day: presence minus breaks, in decimal hours. A free day (weekend) has 0.01, because it can't be 0: treat 0.01 or less as 0.

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
EmployeeScheduleHoursEmployeeScheduleHoursmany
ShiftDeviationsShiftDeviationsmany
ShiftsShiftsmany
TimesheetEntriesTimesheetEntriesmany
Wingman