API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · coverage_demands

Coverage Demand Schema

ID du schéma
coverage_demand
Collection
coverage_demands
Autorisations
  • Lirecoverage_demand_view
  • Créercoverage_demand_create
  • Modifiercoverage_demand_edit
  • Supprimercoverage_demand_delete

Champs

Coverage Demand Schema

coverage_demands4 autorisations

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.

namestringobligatoire

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

1–200 caractères
shortNamestringfacultatif

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

max. 20 caractèresnullable
descriptionstringfacultatif
max. 2000 caractèresnullable
colorstringfacultatif

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

Motifnullable
isActivebooleanfacultatif

Whether this demand is currently being planned

Par défaut : true
assetIduuidfacultatif

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

nullable
orgUnitIduuidfacultatif

Optional reference to the org unit responsible for this demand

nullable
crewTemplateIduuidfacultatif

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
coverageWindowobjectobligatoire

When this demand must be covered.

modestringobligatoire

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

ALWAYSWEEKLY
weeklySlotsobject[]facultatif

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

Par défaut : []
daysOfWeeknumber[]obligatoire

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

min. 1 éléments
startTimestringobligatoire
Motif
endTimestringobligatoire

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

Motif
excludedDatesdate[]facultatif

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

Par défaut : []
allowedBlockIdsuuid[]obligatoire

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 éléments
rolesobject[]obligatoire

Roles that must be covered continuously inside coverageWindow.

min. 1 éléments
slotIdstringobligatoire

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

max. 100 caractères
namestringobligatoire
max. 200 caractères
minHeadcountnumberobligatoire
≥ 0Par défaut : 1
maxHeadcountnumberfacultatif
≥ 1nullable
isMandatorybooleanfacultatif

If true, demand is infeasible without this role filled.

Par défaut : true
requiredSkillsobject[]facultatif
Par défaut : []
skillIduuidobligatoire
minimumLevelstringfacultatif
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanfacultatif
Par défaut : true
allowedBlockIdsOverrideuuid[]facultatif

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

nullable
notestringfacultatif
max. 500 caractèresnullable
validFromdatefacultatif

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

nullable
validTodatefacultatif

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

nullable
notesstringfacultatif
max. 2000 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/coverage_demands — Liste, paginée et filtrable
  • GET /api/v1/coverage_demands/<id> — Une entité
  • POST /api/v1/coverage_demands — Créer
  • PATCH /api/v1/coverage_demands/<id> — Mise à jour partielle
  • DELETE /api/v1/coverage_demands/<id> — Suppression logique
  • GET /api/v1/coverage_demands/<id>/timeline — Audit et activités

Recherche