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

Shift Block Schema

Schema ID
shift_block
Collection
shift_blocks
Permissions
  • Readshift_block_view
  • Createshift_block_create
  • Editshift_block_edit
  • Deleteshift_block_delete

Fields

Shift Block Schema

shift_blocks4 permissions

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.

namestringrequired

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

1–200 characters
shortNamestringoptional

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

max 10 charactersnullable
startTimestringrequired

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

Pattern
endTimestringrequired

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

Pattern
breakMinutesnumberoptional

Break duration in minutes (unpaid)

0 – 480Default: 30
colorstringrequired

Display color as hex

Pattern
isActivebooleanoptional

Whether this block is currently selectable

Default: true
notesstringoptional
max 2000 charactersnullable
shiftTypestringoptional

Type of shift determining ArbZG treatment

REGULARBEREITSCHAFTRUFBEREITSCHAFTNOTDIENSTSPLITSPRINGEROVERLAP
Default: "REGULAR"
attendanceTimeRationumberoptional

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

0 – 1nullable
reactionTimeMinutesnumberoptional

Rufbereitschaft: required response time in minutes

≥ 0nullable
minimumRestAfterMinutesnumberoptional

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

≥ 0nullable

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/shift_blocks — List, paginated + filterable
  • GET /api/v1/shift_blocks/<id> — Single entity
  • POST /api/v1/shift_blocks — Create
  • PATCH /api/v1/shift_blocks/<id> — Partial update
  • DELETE /api/v1/shift_blocks/<id> — Soft delete
  • GET /api/v1/shift_blocks/<id>/timeline — Audit + activities

Search