# SubBranches

> Branches sub

Subject: Relations.

Branches sub

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/SubBranches` |
| Key | `main_branch_id`, `sub_branch_id` |
| Administration-specific | no |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | BASIS, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/SubBranches?$select=main_branch_id,sub_branch_id,description_1,description_2&$top=50
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_id` (key) | String | Branchekode |
| `sub_branch_id` (key) | String, not null | Sub Branchekode |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |

## Relations

- `MainBranch` → [MainBranches](https://docs.fledge.nl/en/api/reference/MainBranches.md) (one)

---

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