Crew Template Schema
Campos
Crew Template Schema
Reusable crew composition (Besatzungsvorlage) — predefined position slots that can be applied to shift templates (e.g. "RTW = 1× Notfallsanitäter + 1× Rettungssanitäter").
name
Crew name (e.g. "RTW-Besatzung", "KTW", "NEF", "Frühschicht-Standard")
shortName
Short display label (e.g. "RTW", "KTW")
description
category
Free-text grouping (e.g. "Rettungsdienst", "First-Level-Support", "Lager"). Used for filtering/grouping in pickers.
color
Optional UI hint color
isActive
Whether this crew template is currently selectable
positionSlots
Required position slots with qualification requirements
slotId
Unique slot identifier within this template
name
minHeadcount
maxHeadcount
isMandatory
If true, shift is infeasible without this slot filled
requiredSkills
minimumLevel
BEGINNERINTERMEDIATEADVANCEDEXPERTnullrequired
note
notes
Ningún campo coincide con el filtro.
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/crew_templates— Lista, paginada y filtrableGET /api/v1/crew_templates/<id>— Una entidadPOST /api/v1/crew_templates— CrearPATCH /api/v1/crew_templates/<id>— Actualización parcialDELETE /api/v1/crew_templates/<id>— Eliminación lógicaGET /api/v1/crew_templates/<id>/timeline— Auditoría y actividades