A team (ploeg) of employees. The team's shifts say which work schedule it works on each day.
Label in Fledge: Ploegen
| URL | https://odata-api.fledge.nl/v2-8/Teams |
|---|---|
| Key | administration_idteam_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
team_idkey | Int32 | Ploegnummer |
billable_machine_rate | Decimal | Percentage decl. machinetarief: Opslag percentage dekl. machinetarief A surcharge percentage on the machine rate for billing; not an hourly rate. |
billable_man_rate | Decimal | Percentage decl. mantarief: Opslag percentage dekl. mantarief A surcharge percentage on the man rate for billing; not an hourly rate. |
billable_total_rate | Decimal | Percentage decl. tarief totaal: Opslag percentage dekl. tarief totaal A surcharge percentage on the total rate for billing; not an hourly rate. |
description | String | Ploegomschrijving: 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Employees | Employees | many |
Shifts | Shifts | many |
TimesheetEntries | TimesheetEntries | many |