# MainOperations

> A main operation (hoofdbewerking): a group of operations, such as sawing or welding.

Subject: Calculations.

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_id`, `main_operation_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP, URENPC |
| Write licenses | PRODUCTIE, BEHEER |
| Scopes | FLEDGE_TERMINAL, FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/MainOperations?$filter=administration_id eq 1&$select=main_operation_id,billable_rate,cost_operations_post_calculation,cost_operations_pre_calculation&$top=50
GET https://odata-api.fledge.nl/v2-8/MainOperations(administration_id=1,main_operation_id={main_operation_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratie |
| `main_operation_id` (key) | Int32, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `EmployeeCompetences` → [EmployeeCompetences](https://docs.fledge.nl/en/api/reference/EmployeeCompetences.md) (many)
- `EmployeeOperationLinks` → [EmployeeOperationLinks](https://docs.fledge.nl/en/api/reference/EmployeeOperationLinks.md) (many)
- `SubOperationLinks` → [SubOperationLinks](https://docs.fledge.nl/en/api/reference/SubOperationLinks.md) (many)
- `SubOperations` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (many)

---

Source: https://docs.fledge.nl/en/api/reference/MainOperations
