An employee planned on one operation line of a production order (pre-calculation sub operation).
Label in Fledge: Medewerker-bewerking-koppeling: Koppelingstabel tussen medewerker en vc-bewerking
| URL | https://odata-api.fledge.nl/v2-8/EmployeeOperationLinks |
|---|---|
| Key | administration_idemployee_idmain_operation_idpre_calculation_sub_operation_idproduction_order_assembly_idproduction_order_header_idsub_operation_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
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/EmployeeOperationLinks" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=employee_id,main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,sub_operation_id,time_to_completion,total_booked,date_created' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/EmployeeOperationLinks');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'employee_id,main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,sub_operation_id,time_to_completion,total_booked,date_created');
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/EmployeeOperationLinks" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("employee_id,main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,sub_operation_id,time_to_completion,total_booked,date_created"),
"$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/EmployeeOperationLinks(administration_id=1,employee_id={employee_id},main_operation_id={main_operation_id},pre_calculation_sub_operation_id={pre_calculation_sub_operation_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}',sub_operation_id={sub_operation_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
employee_idkey | Int32 | Mannummer |
main_operation_idkey | Int32 | Hoofdbewerkings nummer |
sub_operation_idkey | Int32 | Subbewerkingsnummer |
pre_calculation_sub_operation_idkey | Int32 | Volgnummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
date_created | Date | Datum aanmaak |
date_maximum | Date | Datum max.: Maximum datum |
date_minimum | Date | Datum min.: Minimum datum |
date_updated | Date | Datum wijzig |
pre_calculation_processing_time | Decimal | Bewerkingstijd totaal |
time_to_completion | Int32 | Time to completion (sec.) Remaining time in seconds, as stored. |
total_booked | Int32 | Totaal aantal geboekte uren (sec.) Booked seconds, as stored; the Fledge API doesn't keep it up to date. Sum the TimesheetEntries instead. |
user_created | Int32 | User aanmaak |
user_updated | Int32 | User wijzig |
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 |
Employee | Employees | one |
HistoricProductionOrderAssembly | HistoricProductionOrderAssemblies | one |
HistoricProductionOrderHeader | HistoricProductionOrderHeaders | one |
MainOperation | MainOperations | one |
PreCalculationSubOperation | PreCalculationSubOperations | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
SubOperation | SubOperations | one |