API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · crew_templates

Crew Template Schema

ID du schéma
crew_template
Collection
crew_templates
Autorisations
  • Lireshift_block_view
  • Créershift_block_create
  • Modifiershift_block_edit
  • Supprimershift_block_delete

Champs

Crew Template Schema

crew_templates4 autorisations

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

namestringobligatoire

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

1–200 caractères
shortNamestringfacultatif

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

max. 20 caractèresnullable
descriptionstringfacultatif
max. 2000 caractèresnullable
categorystringfacultatif

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

max. 100 caractèresnullable
colorstringfacultatif

Optional UI hint color

Motifnullable
isActivebooleanfacultatif

Whether this crew template is currently selectable

Par défaut : true
positionSlotsobject[]obligatoire

Required position slots with qualification requirements

min. 1 éléments
slotIdstringobligatoire

Unique slot identifier within this template

max. 100 caractères
namestringobligatoire
max. 200 caractères
minHeadcountnumberobligatoire
≥ 0Par défaut : 1
maxHeadcountnumberfacultatif
≥ 1nullable
isMandatorybooleanfacultatif

If true, shift is infeasible without this slot filled

Par défaut : true
requiredSkillsobject[]facultatif
Par défaut : []
skillIduuidobligatoire
minimumLevelstringfacultatif
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
requiredbooleanfacultatif
Par défaut : true
notestringfacultatif
max. 500 caractèresnullable
notesstringfacultatif
max. 2000 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/crew_templates — Liste, paginée et filtrable
  • GET /api/v1/crew_templates/<id> — Une entité
  • POST /api/v1/crew_templates — Créer
  • PATCH /api/v1/crew_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/crew_templates/<id> — Suppression logique
  • GET /api/v1/crew_templates/<id>/timeline — Audit et activités

Recherche