# ShiftDeviations

> A different work schedule for one employee on one date (afwijkend werkschema).

Subject: Hours.

A different work schedule for one employee on one date (afwijkend werkschema). It replaces the team's shift for that day. There is no navigation to the employee; join on employee_id.

Label in Fledge: Afwijkend werkschema per medewerker per dag.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/ShiftDeviations` |
| Key | `administration_id`, `employee_id`, `shift_deviation_date` |
| 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/ShiftDeviations?$filter=administration_id eq 1&$select=employee_id,shift_deviation_date,employee_schedule_header_id&$top=50
GET https://odata-api.fledge.nl/v2-8/ShiftDeviations(administration_id=1,employee_id={employee_id},shift_deviation_date={shift_deviation_date})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `employee_id` (key) | Int32, not null | Mannummer |
| `shift_deviation_date` (key) | Date, not null | Datum met afwijkend werkschema voor persoon.. The date the deviation applies to. |
| `employee_schedule_header_id` | Int32 | Schemanummer. The work schedule used that day instead of the team's. |

## 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/ShiftDeviations
