API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · coverage_demands

Coverage Demand Schema

Schema ID
coverage_demand
Collection
coverage_demands
Permissions
  • Readcoverage_demand_view
  • Createcoverage_demand_create
  • Editcoverage_demand_edit
  • Deletecoverage_demand_delete

Fields

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.

namestringrequired

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

1–200 characters
shortNamestringoptional

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

max 20 charactersnullable
descriptionstringoptional
max 2000 charactersnullable
colorstringoptional

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

Patternnullable
isActivebooleanoptional

Whether this demand is currently being planned

Default: true
assetIduuidoptional

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

nullable
orgUnitIduuidoptional

Optional reference to the org unit responsible for this demand

nullable
crewTemplateIduuidoptional

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
coverageWindowobjectrequired

When this demand must be covered.

modestringrequired

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

ALWAYSWEEKLY
weeklySlotsobject[]optional

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

Default: []
daysOfWeeknumber[]required

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

min 1 items
startTimestringrequired
Pattern
endTimestringrequired

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

Pattern
excludedDatesdate[]optional

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

Default: []
allowedBlockIdsuuid[]required

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[]required

Roles that must be covered continuously inside coverageWindow.

min 1 items
slotIdstringrequired

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

max 100 characters
namestringrequired
max 200 characters
minHeadcountnumberrequired
≥ 0Default: 1
maxHeadcountnumberoptional
≥ 1nullable
isMandatorybooleanoptional

If true, demand is infeasible without this role filled.

Default: true
requiredSkillsobject[]optional
Default: []
skillIduuidrequired
minimumLevelstringoptional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanoptional
Default: true
allowedBlockIdsOverrideuuid[]optional

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

nullable
notestringoptional
max 500 charactersnullable
validFromdateoptional

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

nullable
validTodateoptional

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

nullable
notesstringoptional
max 2000 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/coverage_demands — List, paginated + filterable
  • GET /api/v1/coverage_demands/<id> — Single entity
  • POST /api/v1/coverage_demands — Create
  • PATCH /api/v1/coverage_demands/<id> — Partial update
  • DELETE /api/v1/coverage_demands/<id> — Soft delete
  • GET /api/v1/coverage_demands/<id>/timeline — Audit + activities

Search