Label in Fledge: Branches sub
| URL | https://odata-api.fledge.nl/v2-8/SubBranches |
|---|---|
| Key | main_branch_idsub_branch_id |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BASISBEHEER |
| 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/SubBranches" \
--data-urlencode '$select=main_branch_id,sub_branch_id,description_1,description_2' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/SubBranches');
url.searchParams.set('$select', 'main_branch_id,sub_branch_id,description_1,description_2');
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/SubBranches" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("main_branch_id,sub_branch_id,description_1,description_2"),
"$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/SubBranches(main_branch_id='{main_branch_id}',sub_branch_id='{sub_branch_id}')Fields
| Field | Type | Description |
|---|---|---|
main_branch_idkey | String | Branchekode |
sub_branch_idkey | String | Sub Branchekode |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
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 | |
|---|---|---|
MainBranch | MainBranches | one |