API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · coverage_demands

Coverage Demand Schema

Schema-ID
coverage_demand
Collection
coverage_demands
Permissions
  • Lezencoverage_demand_view
  • Aanmakencoverage_demand_create
  • Wijzigencoverage_demand_edit
  • Verwijderencoverage_demand_delete

Velden

Coverage Demand Schema

coverage_demands4 permissions

A continuous staffing requirement for a coverage unit (e.g. a vehicle "RTW-1", a workstation, a process). Defines which roles must be covered over which time window with which minimum headcount, and which shift-blocks the planner is allowed to compose the coverage from. Replaces the former `coverageGroup` flag and `positionSlots[]` array on shift-template — Bedarf and Schicht-Baustein are now orthogonal.

namestringvereist

Coverage unit name (e.g. "RTW-1", "KTW Köln-Süd", "Helpdesk Tier 1")

1–200 tekens
shortNamestringoptioneel

Short display label (e.g. "RTW-1")

max. 20 tekensnullable
descriptionstringoptioneel
max. 2000 tekensnullable
colorstringoptioneel

Optional UI hint color (used by planner grid and assignment cells)

Patternnullable
isActivebooleanoptioneel

Whether this demand is currently being planned

Default: true
assetIduuidoptioneel

Optional reference to a physical asset (vehicle, workstation, etc.)

nullable
orgUnitIduuidoptioneel

Optional reference to the org unit responsible for this demand

nullable
crewTemplateIduuidoptioneel

Crew template the roles[] were derived from (purely informational — once roles are set, the demand owns them and the crew template can change without affecting this demand).

nullable
coverageWindowobjectvereist

When this demand must be covered.

modestringvereist

"ALWAYS" = continuous 24/7 coverage. "WEEKLY" = covered during the specified weekly slots only (e.g. KTW Mo–Fr 06:00–14:00).

ALWAYSWEEKLY
weeklySlotsobject[]optioneel

Required only when mode = WEEKLY. Each slot defines a contiguous window.

Default: []
daysOfWeeknumber[]vereist

Weekdays the slot applies to. 0 = Sunday … 6 = Saturday.

min. 1 items
startTimestringvereist
Pattern
endTimestringvereist

If endTime <= startTime, the slot wraps to the next day.

Pattern
excludedDatesdate[]optioneel

Specific dates with no coverage demand (holidays, planned downtime).

Default: []
allowedBlockIdsuuid[]vereist

IDs of shift-blocks the planner may use to staff this demand. RTW-1 might list [24h, 12h-Tag, 12h-Nacht]; RTW-3 only [24h]; KTW only [8h-Früh].

min. 1 items
rolesobject[]vereist

Roles that must be covered continuously inside coverageWindow.

min. 1 items
slotIdstringvereist

Stable identifier of this role within the demand (used by assignments).

max. 100 tekens
namestringvereist
max. 200 tekens
minHeadcountnumbervereist
≥ 0Default: 1
maxHeadcountnumberoptioneel
≥ 1nullable
isMandatorybooleanoptioneel

If true, demand is infeasible without this role filled.

Default: true
requiredSkillsobject[]optioneel
Default: []
skillIduuidvereist
minimumLevelstringoptioneel
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanoptioneel
Default: true
allowedBlockIdsOverrideuuid[]optioneel

Optional per-role override of allowedBlockIds (e.g. "Fahrer immer 24h, NotSan frei mischbar"). When null, the demand-level allowedBlockIds apply.

nullable
notestringoptioneel
max. 500 tekensnullable
validFromdateoptioneel

First date this demand is active (inclusive). Null = no lower bound.

nullable
validTodateoptioneel

Last date this demand is active (inclusive). Null = open-ended.

nullable
notesstringoptioneel
max. 2000 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/coverage_demands — Lijst, gepagineerd + filterbaar
  • GET /api/v1/coverage_demands/<id> — Enkele entity
  • POST /api/v1/coverage_demands — Aanmaken
  • PATCH /api/v1/coverage_demands/<id> — Gedeeltelijke update
  • DELETE /api/v1/coverage_demands/<id> — Soft-delete
  • GET /api/v1/coverage_demands/<id>/timeline — Audit + activiteiten

Zoeken