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

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

FieldTypeDescription
administration_idkeyInt32Administratienummer
main_operation_idkeyInt32Hoofdbewerkings nummer
sub_operation_idkeyInt32Subbewerkingsnummer
reverse_main_operation_idkeyInt32Hoofdbewerking
reverse_sub_operation_idkeyInt32Subbewerking
timeInt32Tijd

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
MainOperationsMainOperationsone
ReverseMainOperationsMainOperationsone
SubOperationsSubOperationsone
Wingman