# PlanningShifts

> A work schedule of the planning module: the time windows in which operations are started and run.

Subject: Planning.

A work schedule of the planning module: the time windows in which operations are started and run.

Label in Fledge: Planning werkschema's.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PlanningShifts?$filter=administration_id eq 1&$select=planning_shift_id,manned_begin,manned_end,unmanned_end&$top=50
GET https://odata-api.fledge.nl/v2-8/PlanningShifts(administration_id=1,planning_shift_id={planning_shift_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `planning_shift_id` (key) | Int32, not null | Werkschema |
| `description` | String | Omschrijving |
| `manned_begin` | Int32 | Begintijd starten bew.. Despite its name, the start of the window for starting operations. |
| `manned_end` | Int32 | Eindtijd starten bew.: Eindtijd starten bewerking. Despite its name, the end of the window for starting operations. |
| `manned_time` | Int32 | Tijd voor starten bewerking |
| `unmanned_end` | Int32 | Eindtijd uitvoering. Despite its name, the end of the window for running operations. |
| `unmanned_start` | Int32 | Begintijd uitvoering. Despite its name, the start of the window for running operations. |
| `unmanned_time` | Int32 | Tijd uitvoering bewerking |

## Relations

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

---

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