# PlanningAvailableCapacities

> The capacity of one resource on one work-schedule date in the planning module of the old ERP.

Subject: Planning.

The capacity of one resource on one work-schedule date in the planning module of the old ERP. Empty when the administration doesn't use that module.

Label in Fledge: Beschikbare capaciteit per resource per datum.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PlanningAvailableCapacities?$filter=administration_id eq 1&$select=planning_resource_id,process,shift_schedule_date,capacity_manned,capacity_occupied,total_capacity&$top=50
GET https://odata-api.fledge.nl/v2-8/PlanningAvailableCapacities(administration_id=1,planning_resource_id={planning_resource_id},process={process},shift_schedule_date={shift_schedule_date})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `process` (key) | Int32, not null | Proces ID: Process ID. Part of the key; one resource and date can have rows for several processes, so don't add them up blindly. |
| `shift_schedule_date` (key) | Date, not null | Schemadatum |
| `planning_resource_id` (key) | Int32, not null | Resource |
| `capacity_manned` | Int32 | Capaciteit bemand. The manned part of the capacity. |
| `capacity_occupied` | Int32 | Bezette capaciteit. The capacity already taken by planned operations, in the same unit. |
| `total_capacity` | Int32 | Capaciteit totaal: Totale capaciteit (bemand + onbemand). The total capacity, manned and unmanned; the unit isn't documented. |
| `units` | Int32 | Aantal eenheden van de resource |
| `week_number` | Int32 | Weeknummer |

## Relations

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

---

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