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_idplanning_resource_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/PlanningResources" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=planning_resource_id,available_quantity,name,abbreviation' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PlanningResources');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'planning_resource_id,available_quantity,name,abbreviation');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/PlanningResources" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("planning_resource_id,available_quantity,name,abbreviation"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/PlanningResources(administration_id=1,planning_resource_id={planning_resource_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
planning_resource_idkey | Int32 | 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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
PlanningResourceGroup | PlanningResourceGroups | one |
PlanningAvailableCapacities | PlanningAvailableCapacities | many |
PlanningDivergentCapacities | PlanningDivergentCapacities | many |
PlanningOrderOperations | PlanningOrderOperations | many |
PlanningPlannedCapacities | PlanningPlannedCapacities | many |
SubOperations | SubOperations | many |