API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · coverage_demands

Coverage Demand Schema

ID del esquema
coverage_demand
Colección
coverage_demands
Permisos
  • Leercoverage_demand_view
  • Crearcoverage_demand_create
  • Modificarcoverage_demand_edit
  • Eliminarcoverage_demand_delete

Campos

Coverage Demand Schema

coverage_demands4 permisos

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.

namestringobligatorio

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

1–200 caracteres
shortNamestringopcional

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

máx. 20 caracteresadmite null
descriptionstringopcional
máx. 2000 caracteresadmite null
colorstringopcional

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

Patrónadmite null
isActivebooleanopcional

Whether this demand is currently being planned

Valor por defecto: true
assetIduuidopcional

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

admite null
orgUnitIduuidopcional

Optional reference to the org unit responsible for this demand

admite null
crewTemplateIduuidopcional

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).

admite null
coverageWindowobjectobligatorio

When this demand must be covered.

modestringobligatorio

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

ALWAYSWEEKLY
weeklySlotsobject[]opcional

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

Valor por defecto: []
daysOfWeeknumber[]obligatorio

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

mín. 1 elementos
startTimestringobligatorio
Patrón
endTimestringobligatorio

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

Patrón
excludedDatesdate[]opcional

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

Valor por defecto: []
allowedBlockIdsuuid[]obligatorio

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].

mín. 1 elementos
rolesobject[]obligatorio

Roles that must be covered continuously inside coverageWindow.

mín. 1 elementos
slotIdstringobligatorio

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

máx. 100 caracteres
namestringobligatorio
máx. 200 caracteres
minHeadcountnumberobligatorio
≥ 0Valor por defecto: 1
maxHeadcountnumberopcional
≥ 1admite null
isMandatorybooleanopcional

If true, demand is infeasible without this role filled.

Valor por defecto: true
requiredSkillsobject[]opcional
Valor por defecto: []
skillIduuidobligatorio
minimumLevelstringopcional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
admite null
requiredbooleanopcional
Valor por defecto: true
allowedBlockIdsOverrideuuid[]opcional

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

admite null
notestringopcional
máx. 500 caracteresadmite null
validFromdateopcional

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

admite null
validTodateopcional

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

admite null
notesstringopcional
máx. 2000 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/coverage_demands — Lista, paginada y filtrable
  • GET /api/v1/coverage_demands/<id> — Una entidad
  • POST /api/v1/coverage_demands — Crear
  • PATCH /api/v1/coverage_demands/<id> — Actualización parcial
  • DELETE /api/v1/coverage_demands/<id> — Eliminación lógica
  • GET /api/v1/coverage_demands/<id>/timeline — Auditoría y actividades

Búsqueda