---
title: "DepartmentsByEmployerId (Loket.nl REST)"
description: "Departments by Employer ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.Departments.DepartmentsByEmployerId
original: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.Departments.DepartmentsByEmployerId
updated: 2024-06-10T18:51:26Z
license: https://documentation.invantive.eu/en/
---

# DepartmentsByEmployerId: Loket.nl REST Departments by Employer ID

`read only` `REST`

- Catalog: `LoketNlRest`
- Schema: `Departments`
- Label: Departments by Employer ID

List of departments
__Activity name :__ GetDepartmentsByEmployerId

Get a list of all departments for the employer. This is the point where the departments available for use at employment level (organizational entity) are managed.


Can only retrieve data.

## API Source

- Endpoint: `/providers/employers/{employerId}/departments`
- Operation: `get /providers/employers/{employerId}/departments`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `employerId` | `` | [x] |  | The unique identifier of the employer |

## Table Columns

The columns of the table `DepartmentsByEmployerId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `code` | `int32` | Code | [ ] |  | The visible identifier of the department.  |
| `description` | `varchar2(50)` | Description | [ ] |  | The visible description (i.e. name) of the department.  |
| `emailLeaveRequest` | `varchar2(255)` | Email Address for Leave Requests | [ ] |  | Recipient e-mail adress for notification in case of leave requests. Typically this is the mailadress of a manager that would get a notification mail when a new leave requet is to be processed. |
| `id` | `guid` | ID | [ ] |  | The unique identifier of an object (GUID/UUID)  |
| `subDepartmentOf_code` | `int32` | itgen_loketnl_subdepartmentof_code | [ ] |  |  |
| `subDepartmentOf_description` | `varchar2(50)` | itgen_loketnl_subdepartmentof_description | [ ] |  |  |
| `subDepartmentOf_key` | `guid` | itgen_loketnl_subdepartmentof_key | [ ] |  | The unique identifier of an object (GUID/UUID)  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Loket.nl REST](/en/release-notes/drivers/loket-nl-rest)

