API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · crew_templates

Crew Template Schema

Schema-ID
crew_template
Collection
crew_templates
Permissions
  • Lezenshift_block_view
  • Aanmakenshift_block_create
  • Wijzigenshift_block_edit
  • Verwijderenshift_block_delete

Velden

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

namestringvereist

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

1–200 tekens
shortNamestringoptioneel

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

max. 20 tekensnullable
descriptionstringoptioneel
max. 2000 tekensnullable
categorystringoptioneel

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

max. 100 tekensnullable
colorstringoptioneel

Optional UI hint color

Patternnullable
isActivebooleanoptioneel

Whether this crew template is currently selectable

Default: true
positionSlotsobject[]vereist

Required position slots with qualification requirements

min. 1 items
slotIdstringvereist

Unique slot identifier within this template

max. 100 tekens
namestringvereist
max. 200 tekens
minHeadcountnumbervereist
≥ 0Default: 1
maxHeadcountnumberoptioneel
≥ 1nullable
isMandatorybooleanoptioneel

If true, shift is infeasible without this slot filled

Default: true
requiredSkillsobject[]optioneel
Default: []
skillIduuidvereist
minimumLevelstringoptioneel
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanoptioneel
Default: true
notestringoptioneel
max. 500 tekensnullable
notesstringoptioneel
max. 2000 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/crew_templates — Lijst, gepagineerd + filterbaar
  • GET /api/v1/crew_templates/<id> — Enkele entity
  • POST /api/v1/crew_templates — Aanmaken
  • PATCH /api/v1/crew_templates/<id> — Gedeeltelijke update
  • DELETE /api/v1/crew_templates/<id> — Soft-delete
  • GET /api/v1/crew_templates/<id>/timeline — Audit + activiteiten

Zoeken