A team (ploeg) of employees. The team's shifts say which work schedule it works on each day.

Label in Fledge: Ploegen

URLhttps://odata-api.fledge.nl/v2-8/Teams
Keyadministration_idteam_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/Teams" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=team_id,billable_machine_rate,billable_man_rate,billable_total_rate' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/Teams');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'team_id,billable_machine_rate,billable_man_rate,billable_total_rate');
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/Teams" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("team_id,billable_machine_rate,billable_man_rate,billable_total_rate"),
    "$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/Teams(administration_id=1,team_id={team_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
team_idkeyInt32Ploegnummer
billable_machine_rateDecimalPercentage decl. machinetarief: Opslag percentage dekl. machinetarief

A surcharge percentage on the machine rate for billing; not an hourly rate.

billable_man_rateDecimalPercentage decl. mantarief: Opslag percentage dekl. mantarief

A surcharge percentage on the man rate for billing; not an hourly rate.

billable_total_rateDecimalPercentage decl. tarief totaal: Opslag percentage dekl. tarief totaal

A surcharge percentage on the total rate for billing; not an hourly rate.

descriptionStringPloegomschrijving: Omschrijving

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
EmployeesEmployeesmany
ShiftsShiftsmany
TimesheetEntriesTimesheetEntriesmany
Wingman