Label in Fledge: Planning geplande capaciteit per dag
| URL | https://odata-api.fledge.nl/v2-8/PlanningDailyPlannedCapacities |
|---|---|
| Key | administration_iddateplanning_order_assemblies_idplanning_order_header_idplanning_order_operation_idproduction_order_header_id |
| 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/PlanningDailyPlannedCapacities" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=date,planning_order_assemblies_id,planning_order_header_id,planning_order_operation_id,production_order_header_id,date_valid,fixed,is_simulation' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PlanningDailyPlannedCapacities');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'date,planning_order_assemblies_id,planning_order_header_id,planning_order_operation_id,production_order_header_id,date_valid,fixed,is_simulation');
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/PlanningDailyPlannedCapacities" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("date,planning_order_assemblies_id,planning_order_header_id,planning_order_operation_id,production_order_header_id,date_valid,fixed,is_simulation"),
"$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/PlanningDailyPlannedCapacities(administration_id=1,date={date},planning_order_assemblies_id={planning_order_assemblies_id},planning_order_header_id={planning_order_header_id},planning_order_operation_id={planning_order_operation_id},production_order_header_id='{production_order_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
planning_order_operation_idkey | Int32 | Bewerkingsnummer |
datekey | Date | Datum |
planning_order_header_idkey | Int32 | Ordernummer |
production_order_header_idkey | String | Order nummer |
planning_order_assemblies_idkey | Int32 | Schrapnummer |
date_valid | Date | Geldig t/m: Geldigheid simulatie order |
fixed | Boolean | Vastgezet (ja/nee) |
is_simulation | Boolean | Simulatie order (ja/nee) |
planning_resource_group_id | Int32 | Resourcegroep |
planning_resource_id | Int32 | Resource |
time_plan | Int32 | Tijd gepland |
time_post_calculation | Int32 | Tijd besteed (NC) |
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 |
PlanningOrderOperation | PlanningOrderOperations | one |