Label in Fledge: Geplande capaciteit binnen dag: Planning geplande capaciteit binnen de dag
| URL | https://odata-api.fledge.nl/v2-8/PlanningPlannedCapacities |
|---|---|
| Key | administration_idplanning_order_header_idplanning_order_operation_idplanning_planned_capacity_idproduction_order_assembly_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/PlanningPlannedCapacities" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=planning_order_header_id,planning_order_operation_id,planning_planned_capacity_id,production_order_assembly_id,end_date,shift_schedule_date,start_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PlanningPlannedCapacities');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'planning_order_header_id,planning_order_operation_id,planning_planned_capacity_id,production_order_assembly_id,end_date,shift_schedule_date,start_date');
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/PlanningPlannedCapacities" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("planning_order_header_id,planning_order_operation_id,planning_planned_capacity_id,production_order_assembly_id,end_date,shift_schedule_date,start_date"),
"$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/PlanningPlannedCapacities(administration_id=1,planning_order_header_id={planning_order_header_id},planning_order_operation_id={planning_order_operation_id},planning_planned_capacity_id={planning_planned_capacity_id},production_order_assembly_id={production_order_assembly_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
planning_planned_capacity_idkey | Int32 | Volgnummer |
planning_order_operation_idkey | Int32 | Bewerkingsnummer |
planning_order_header_idkey | Int32 | Planningsordernummer: Ordernummer van planningsheader |
production_order_assembly_idkey | Int32 | Schrapnummer |
capacity | Int32 | Hoeveelheid capaciteit die door deze plei vertegenwoordigd wordt. |
end | Int32 | Eindtijd abs.: Absolute eindtijd: het aantal seconden dat verstreken is van 01-01-2001 tot aan het eindtijdstip van dit record |
end_date | Date | Einddatum |
end_time | Int32 | Eindtijd bewerkingsinterval (in sec.) |
fixed | Boolean | Geeft aan of het bewerkingsinterval is vastgezet of niet. |
is_locked | Boolean | Gelocked |
is_outsourced | Boolean | Uitbesteding |
is_simulation | Boolean | Simulatie (ja/nee) |
is_stacked | Boolean | Geeft aan of de plei gestapeld is of niet. |
main_operation_id | Int32 | Hoofdbewerkings nummer |
operation_sequence | Int32 | Geleidingsnummer: Bewerkings volgorde |
planning_resource_group_id | Int32 | Resourcegroep |
planning_resource_id | Int32 | Resource |
pre_calculation_sub_operation_id | Int32 | Volgnummer |
production_order_header_id | String | Order nummer |
shift_schedule_date | Date | Schemadatum: Datum van het werkschema waarbinnen deze capaciteit zich bevindt. |
start | Int32 | Begintijd abs.: Absolute begintijd: het aantal seconden dat verstreken is van 01-01-2001 tot aan het begintijdstip van dit record |
start_date | Date | Begindatum |
start_time | Int32 | Begintijd bewerkingsinterval (in sec.) |
status | Int32 | Status (1=actief, 2=niet-actief) |
sub_operation_id | Int32 | Subbewerkingsnummer |
type | Int32 | Type normaal, vast, simulatie, gestapeld, uitbesteding) |
units | Decimal | Het aantal eenheden van de resource. |
user_id | Int32 | Gebruikersnummer: Gebruikers nummer, ook een unieke key voor de tabel |
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 |
MainOperation | MainOperations | one |
PlanningOrderHeader | PlanningOrderHeaders | one |
PlanningResource | PlanningResources | one |
PlanningResourceGroup | PlanningResourceGroups | one |
PreCalculationSubOperation | PreCalculationSubOperations | one |
ProductionOrderAssemblies | ProductionOrderAssemblies | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
SubOperation | SubOperations | one |
User | Users | one |