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

Crew Template Schema

ID del esquema
crew_template
Colección
crew_templates
Permisos
  • Leershift_block_view
  • Crearshift_block_create
  • Modificarshift_block_edit
  • Eliminarshift_block_delete

Campos

Crew Template Schema

crew_templates4 permisos

Reusable crew composition (Besatzungsvorlage) — predefined position slots that can be applied to shift templates (e.g. "RTW = 1× Notfallsanitäter + 1× Rettungssanitäter").

namestringobligatorio

Crew name (e.g. "RTW-Besatzung", "KTW", "NEF", "Frühschicht-Standard")

1–200 caracteres
shortNamestringopcional

Short display label (e.g. "RTW", "KTW")

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

Free-text grouping (e.g. "Rettungsdienst", "First-Level-Support", "Lager"). Used for filtering/grouping in pickers.

máx. 100 caracteresadmite null
colorstringopcional

Optional UI hint color

Patrónadmite null
isActivebooleanopcional

Whether this crew template is currently selectable

Valor por defecto: true
positionSlotsobject[]obligatorio

Required position slots with qualification requirements

mín. 1 elementos
slotIdstringobligatorio

Unique slot identifier within this template

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

If true, shift is infeasible without this slot filled

Valor por defecto: true
requiredSkillsobject[]opcional
Valor por defecto: []
skillIduuidobligatorio
minimumLevelstringopcional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
admite null
requiredbooleanopcional
Valor por defecto: true
notestringopcional
máx. 500 caracteresadmite 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/crew_templates — Lista, paginada y filtrable
  • GET /api/v1/crew_templates/<id> — Una entidad
  • POST /api/v1/crew_templates — Crear
  • PATCH /api/v1/crew_templates/<id> — Actualización parcial
  • DELETE /api/v1/crew_templates/<id> — Eliminación lógica
  • GET /api/v1/crew_templates/<id>/timeline — Auditoría y actividades

Búsqueda