API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · crew_templates

Crew Template Schema

Schema ID
crew_template
Collection
crew_templates
Permissions
  • Readshift_block_view
  • Createshift_block_create
  • Editshift_block_edit
  • Deleteshift_block_delete

Fields

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

namestringrequired

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

1–200 characters
shortNamestringoptional

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

max 20 charactersnullable
descriptionstringoptional
max 2000 charactersnullable
categorystringoptional

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

max 100 charactersnullable
colorstringoptional

Optional UI hint color

Patternnullable
isActivebooleanoptional

Whether this crew template is currently selectable

Default: true
positionSlotsobject[]required

Required position slots with qualification requirements

min 1 items
slotIdstringrequired

Unique slot identifier within this template

max 100 characters
namestringrequired
max 200 characters
minHeadcountnumberrequired
≥ 0Default: 1
maxHeadcountnumberoptional
≥ 1nullable
isMandatorybooleanoptional

If true, shift is infeasible without this slot filled

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

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/crew_templates — List, paginated + filterable
  • GET /api/v1/crew_templates/<id> — Single entity
  • POST /api/v1/crew_templates — Create
  • PATCH /api/v1/crew_templates/<id> — Partial update
  • DELETE /api/v1/crew_templates/<id> — Soft delete
  • GET /api/v1/crew_templates/<id>/timeline — Audit + activities

Search