API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen
Entity · crew_templates

Crew Template Schema

Schema-ID
crew_template
Collection
crew_templates
Permissions
  • Lesenshift_block_view
  • Anlegenshift_block_create
  • Ändernshift_block_edit
  • Löschenshift_block_delete

Felder

Crew Template Schema

crew_templates4 Permissions

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

namestringerforderlich

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

1–200 Zeichen
shortNamestringoptional

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

max 20 Zeichennullable
descriptionstringoptional
max 2000 Zeichennullable
categorystringoptional

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

max 100 Zeichennullable
colorstringoptional

Optional UI hint color

Patternnullable
isActivebooleanoptional

Whether this crew template is currently selectable

Default: true
positionSlotsobject[]erforderlich

Required position slots with qualification requirements

min 1 Items
slotIdstringerforderlich

Unique slot identifier within this template

max 100 Zeichen
namestringerforderlich
max 200 Zeichen
minHeadcountnumbererforderlich
≥ 0Default: 1
maxHeadcountnumberoptional
≥ 1nullable
isMandatorybooleanoptional

If true, shift is infeasible without this slot filled

Default: true
requiredSkillsobject[]optional
Default: []
skillIduuiderforderlich
minimumLevelstringoptional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanoptional
Default: true
notestringoptional
max 500 Zeichennullable
notesstringoptional
max 2000 Zeichennullable

Standard-Endpoints

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/crew_templates — Liste, paginiert + filterbar
  • GET /api/v1/crew_templates/<id> — Einzelne Entity
  • POST /api/v1/crew_templates — Anlegen
  • PATCH /api/v1/crew_templates/<id> — Teil-Update
  • DELETE /api/v1/crew_templates/<id> — Soft-Delete
  • GET /api/v1/crew_templates/<id>/timeline — Audit + Aktivitäten

Suche