# EmployeeScheduleHours

> One time interval of a work schedule.

Subject: Hours.

One time interval of a work schedule.

Label in Fledge: Uursoortenverdeling werkschema.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/EmployeeScheduleHours` |
| Key | `administration_id`, `employee_schedule_header_id`, `employee_schedule_hour_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE, FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/EmployeeScheduleHours?$filter=administration_id eq 1&$select=employee_schedule_header_id,employee_schedule_hour_id,end_time,start_time,hour_type&$top=50
GET https://odata-api.fledge.nl/v2-8/EmployeeScheduleHours(administration_id=1,employee_schedule_header_id={employee_schedule_header_id},employee_schedule_hour_id={employee_schedule_hour_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `employee_schedule_header_id` (key) | Int32, not null | Schemanummer |
| `employee_schedule_hour_id` (key) | Int32, not null | Volgnummer |
| `end_time` | Int32 | Eindtijd. Seconds since midnight; below start_time means the interval runs past midnight. |
| `hour_type` | Int32 | Uursoort. Values: 1 = Present (aanwezig); 2 = Working hours, computed (werkuren); 3 = Schedule buffer; 4 = Arrival window (inloop); 5 = Departure window (uitloop); 6 = Break (pauze); 7 = Overtime (overwerk) |
| `start_time` | Int32 | Begintijd. Seconds since midnight. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `EmployeeScheduleHeader` → [EmployeeScheduleHeaders](https://docs.fledge.nl/en/api/reference/EmployeeScheduleHeaders.md) (one)

---

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