The capacity of one resource on one work-schedule date in the planning module of the old ERP. Empty when the administration doesn't use that module.

Label in Fledge: Beschikbare capaciteit per resource per datum

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
processkeyInt32Proces ID: Process ID

Part of the key; one resource and date can have rows for several processes, so don't add them up blindly.

shift_schedule_datekeyDateSchemadatum
planning_resource_idkeyInt32Resource
capacity_mannedInt32Capaciteit bemand

The manned part of the capacity.

capacity_occupiedInt32Bezette capaciteit

The capacity already taken by planned operations, in the same unit.

total_capacityInt32Capaciteit totaal: Totale capaciteit (bemand + onbemand)

The total capacity, manned and unmanned; the unit isn't documented.

unitsInt32Aantal eenheden van de resource
week_numberInt32Weeknummer

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
PlanningResourcePlanningResourcesone
Wingman