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
| URL | https://odata-api.fledge.nl/v2-8/PlanningAvailableCapacities |
|---|---|
| Key | administration_idplanning_resource_idprocessshift_schedule_date |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
processkey | Int32 | Proces 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_datekey | Date | Schemadatum |
planning_resource_idkey | Int32 | Resource |
capacity_manned | Int32 | Capaciteit bemand The manned part of the capacity. |
capacity_occupied | Int32 | Bezette capaciteit The capacity already taken by planned operations, in the same unit. |
total_capacity | Int32 | Capaciteit totaal: Totale capaciteit (bemand + onbemand) The total capacity, manned and unmanned; the unit isn't documented. |
units | Int32 | Aantal eenheden van de resource |
week_number | Int32 | Weeknummer |
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 |
PlanningResource | PlanningResources | one |