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

Shift Block Schema

ID du schéma
shift_block
Collection
shift_blocks
Autorisations
  • Lireshift_block_view
  • Créershift_block_create
  • Modifiershift_block_edit
  • Supprimershift_block_delete

Champs

Shift Block Schema

shift_blocks4 autorisations

A reusable time block ("Schicht-Baustein") an employee can occupy — e.g. "24h", "Tag-12h", "Nacht-12h", "8h-Früh". Pure time + ArbZG metadata, no role/headcount/coverage information (those live in coverage-demand). Replaces the former shift-template entity.

namestringobligatoire

Block name (e.g. "24h", "Tag-12h", "Nacht-12h", "8h-Früh")

1–200 caractères
shortNamestringfacultatif

Short display label (e.g. "24h", "T12", "N12", "F8")

max. 10 caractèresnullable
startTimestringobligatoire

Start time in HH:mm format (24h clock)

Motif
endTimestringobligatoire

End time in HH:mm format. If endTime <= startTime the block wraps to the next day (e.g. 18:00 → 06:00 for a Nacht-12h block).

Motif
breakMinutesnumberfacultatif

Break duration in minutes (unpaid)

0 – 480Par défaut : 30
colorstringobligatoire

Display color as hex

Motif
isActivebooleanfacultatif

Whether this block is currently selectable

Par défaut : true
notesstringfacultatif
max. 2000 caractèresnullable
shiftTypestringfacultatif

Type of shift determining ArbZG treatment

REGULARBEREITSCHAFTRUFBEREITSCHAFTNOTDIENSTSPLITSPRINGEROVERLAP
Par défaut : "REGULAR"
attendanceTimeRationumberfacultatif

Bereitschaftsdienst: ratio of attendance time counted as full working time (e.g. 0.25). For 24h-Schichten typically ~0.5–0.7.

0 – 1nullable
reactionTimeMinutesnumberfacultatif

Rufbereitschaft: required response time in minutes

≥ 0nullable
minimumRestAfterMinutesnumberfacultatif

Required rest after this block in minutes (overrides ArbZG § 5 default of 11h if higher)

≥ 0nullable

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

Recherche