A resource to plan on: a machine or workplace. A sub operation's definition names its resource (SubOperations.resource_id); the web app's plan board groups by it.

Label in Fledge: Planning resources

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
planning_resource_idkeyInt32Resource
abbreviationStringAfkorting resource naam: Afkorting voor resource naam
available_quantityInt32Het beschikbare aantal eenheden van de resource

The number of units of the resource available.

is_variable_unitBooleanVaste eenheid: Vaste of variabele eenheid
nameStringResource naam
operation_division_thresholdInt32Verdelingsdrempel. Deze bepaalt het aantal eenheden van de resource waarop een bewerking wordt uitgevoerd.
planning_resource_group_idInt32Resourcegroep
team_shift_or_day_shiftBooleanPloegendienst of dagdienst
unmannedBooleanOnbemand draaien
work_scheduleStringWerkschema'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
PlanningResourceGroupPlanningResourceGroupsone
PlanningAvailableCapacitiesPlanningAvailableCapacitiesmany
PlanningDivergentCapacitiesPlanningDivergentCapacitiesmany
PlanningOrderOperationsPlanningOrderOperationsmany
PlanningPlannedCapacitiesPlanningPlannedCapacitiesmany
SubOperationsSubOperationsmany
Wingman