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

URLhttps://odata-api.fledge.nl/v2-8/MainOperations
Keyadministration_idmain_operation_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPPURENPC
Write licensesPRODUCTIEBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratie
main_operation_idkeyInt32Hoofdbewerkings nummer
billable_rateDecimalDeclarabel tarief van de bewerking

The hourly rate charged (declaratieprijs); on SubOperations the same is billing_rate.

cost_operations_post_calculationDecimalKostprijstarief

The hourly cost price (kostprijs).

cost_operations_pre_calculationDecimalCalculatietarief

The hourly price in a calculation (calculatieprijs).

descriptionStringOmschrijving

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.

NavigationEntity set
AdministrationAdministrationsone
EmployeeCompetencesEmployeeCompetencesmany
EmployeeOperationLinksEmployeeOperationLinksmany
SubOperationLinksSubOperationLinksmany
SubOperationsSubOperationsmany
Wingman