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_idmain_operation_idreverse_main_operation_idreverse_sub_operation_idsub_operation_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| Scopes | FLEDGE_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/SubOperationLinks" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=main_operation_id,reverse_main_operation_id,reverse_sub_operation_id,sub_operation_id,time' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/SubOperationLinks');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'main_operation_id,reverse_main_operation_id,reverse_sub_operation_id,sub_operation_id,time');
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/SubOperationLinks" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("main_operation_id,reverse_main_operation_id,reverse_sub_operation_id,sub_operation_id,time"),
"$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/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_idkey | Int32 | Administratienummer |
main_operation_idkey | Int32 | Hoofdbewerkings nummer |
sub_operation_idkey | Int32 | Subbewerkingsnummer |
reverse_main_operation_idkey | Int32 | Hoofdbewerking |
reverse_sub_operation_idkey | Int32 | Subbewerking |
time | Int32 | Tijd |
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 |
MainOperations | MainOperations | one |
ReverseMainOperations | MainOperations | one |
SubOperations | SubOperations | one |