# SubOperationLinks

> Links a set-up operation to an operation it prepares, within one main operation: the row of the prepared operation has the set-up operation in reverse_sub_operation_id.

Subject: Calculations.

Links a set-up operation to an operation it prepares, within one main operation: the row of the prepared operation has the set-up operation in reverse_sub_operation_id. The Fledge API also writes the mirrored row on the set-up operation, so filter on the prepared operation to count a link once.

Label in Fledge: Bewerkingen relaties tussen bewerkingen.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/SubOperationLinks` |
| Key | `administration_id`, `main_operation_id`, `reverse_main_operation_id`, `reverse_sub_operation_id`, `sub_operation_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/SubOperationLinks?$filter=administration_id eq 1&$select=main_operation_id,reverse_main_operation_id,reverse_sub_operation_id,sub_operation_id,time&$top=50
GET https://odata-api.fledge.nl/v2-8/SubOperationLinks(administration_id=1,main_operation_id={main_operation_id},reverse_main_operation_id={reverse_main_operation_id},reverse_sub_operation_id={reverse_sub_operation_id},sub_operation_id={sub_operation_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `main_operation_id` (key) | Int32, not null | Hoofdbewerkings nummer |
| `sub_operation_id` (key) | Int32, not null | Subbewerkingsnummer |
| `reverse_main_operation_id` (key) | Int32, not null | Hoofdbewerking |
| `reverse_sub_operation_id` (key) | Int32, not null | Subbewerking |
| `time` | Int32 | Tijd |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `MainOperations` → [MainOperations](https://docs.fledge.nl/en/api/reference/MainOperations.md) (one)
- `ReverseMainOperations` → [MainOperations](https://docs.fledge.nl/en/api/reference/MainOperations.md) (one)
- `SubOperations` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (one)

---

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