A main operation (hoofdbewerking): a group of operations, such as sawing or welding. main_operation_id is its code, 1 to 99, chosen once and never changed; screens print it with two digits.
Label in Fledge: Hoofdbewerkingen
| URL | https://odata-api.fledge.nl/v2-8/MainOperations |
|---|---|
| Key | administration_idmain_operation_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | PRODUCTIEBEHEER |
| Scopes | FLEDGE_TERMINALFLEDGE_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/MainOperations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=main_operation_id,billable_rate,cost_operations_post_calculation,cost_operations_pre_calculation' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/MainOperations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'main_operation_id,billable_rate,cost_operations_post_calculation,cost_operations_pre_calculation');
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/MainOperations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("main_operation_id,billable_rate,cost_operations_post_calculation,cost_operations_pre_calculation"),
"$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/MainOperations(administration_id=1,main_operation_id={main_operation_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratie |
main_operation_idkey | Int32 | Hoofdbewerkings nummer |
billable_rate | Decimal | Declarabel tarief van de bewerking The hourly rate charged (declaratieprijs); on SubOperations the same is billing_rate. |
cost_operations_post_calculation | Decimal | Kostprijstarief The hourly cost price (kostprijs). |
cost_operations_pre_calculation | Decimal | Calculatietarief The hourly price in a calculation (calculatieprijs). |
description | String | Omschrijving |
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 |
EmployeeCompetences | EmployeeCompetences | many |
EmployeeOperationLinks | EmployeeOperationLinks | many |
SubOperationLinks | SubOperationLinks | many |
SubOperations | SubOperations | many |