# Shifts

> The work schedule a team works on one calendar day (ploegenschema).

Subject: Hours.

The work schedule a team works on one calendar day (ploegenschema). An employee's schedule for a day is their ShiftDeviation of that day if there is one, else their team's shift.

Label in Fledge: Ploegenschema.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/Shifts?$filter=administration_id eq 1&$select=day_number,team_id,year,date,employee_schedule_header_id&$top=50
GET https://odata-api.fledge.nl/v2-8/Shifts(administration_id=1,day_number={day_number},team_id={team_id},year={year})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `team_id` (key) | Int32, not null | Ploegnummer |
| `day_number` (key) | Int32, not null | Dagnummer binnen jaar.. The day of the year, counted from 0 (1 January); date is 1 January of year plus day_number days. |
| `year` (key) | Int32, not null | Jaar (niet boekjaar). The calendar year, not the financial year. |
| `date` | Date | Kalenderdatum. The calendar date. |
| `employee_schedule_header_id` | Int32 | Schemanummer. The work schedule of that day (EmployeeScheduleHeaders); empty means none. |

## Relations

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

---

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