# PlanningResources

> A resource to plan on: a machine or workplace.

Subject: Planning.

A resource to plan on: a machine or workplace. A sub operation's definition names its resource (SubOperations.resource_id); the web app's plan board groups by it.

Label in Fledge: Planning resources.

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

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `planning_resource_id` (key) | Int32, not null | Resource |
| `abbreviation` | String | Afkorting resource naam: Afkorting voor resource naam |
| `available_quantity` | Int32 | Het beschikbare aantal eenheden van de resource. The number of units of the resource available. |
| `is_variable_unit` | Boolean | Vaste eenheid: Vaste of variabele eenheid |
| `name` | String | Resource naam |
| `operation_division_threshold` | Int32 | Verdelingsdrempel. Deze bepaalt het aantal eenheden van de resource waarop een bewerking wordt uitgevoerd. |
| `planning_resource_group_id` | Int32 | Resourcegroep |
| `team_shift_or_day_shift` | Boolean | Ploegendienst of dagdienst |
| `unmanned` | Boolean | Onbemand draaien |
| `work_schedule` | String | Werkschema's |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `PlanningResourceGroup` → [PlanningResourceGroups](https://docs.fledge.nl/en/api/reference/PlanningResourceGroups.md) (one)
- `PlanningAvailableCapacities` → [PlanningAvailableCapacities](https://docs.fledge.nl/en/api/reference/PlanningAvailableCapacities.md) (many)
- `PlanningDivergentCapacities` → [PlanningDivergentCapacities](https://docs.fledge.nl/en/api/reference/PlanningDivergentCapacities.md) (many)
- `PlanningOrderOperations` → [PlanningOrderOperations](https://docs.fledge.nl/en/api/reference/PlanningOrderOperations.md) (many)
- `PlanningPlannedCapacities` → [PlanningPlannedCapacities](https://docs.fledge.nl/en/api/reference/PlanningPlannedCapacities.md) (many)
- `SubOperations` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (many)

---

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