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

Working Time Assignment Schema

Schema-ID
working_time_assignment
Collection
working_time_assignments
Permissions
  • Lezenworking_time_assignment_view
  • Aanmakenworking_time_assignment_employee
  • Wijzigenworking_time_assignment_employee
  • Verwijderenworking_time_assignment_employee

Velden

Working Time Assignment Schema

working_time_assignments4 permissions

Hierarchische Zuweisung eines Arbeitszeitmodells an einen Scope mit Gültigkeit

scopestringvereist

Auflösungs-Ebene: Tenant (Fallback), Org-Unit (Vererbung), Employee (Override)

TENANTORG_UNITEMPLOYEE
scopeIdstringvereist

Ziel-ID passend zum Scope: tenantId | org_unit._id | employee_profile._id. Für EMPLOYEE-Scope ist `employee_profile._id` der kanonische Schlüssel (ADR 0036b, Folge-Update 2026-05). Damit lassen sich Arbeitszeitmodelle auch Mitarbeitern ohne verknüpften User-Account zuweisen.

1–64 tekens
workingTimeModelIdstringvereist

Referenz auf working_time_models._id

1–64 tekens
validFromstringvereist

ISO 8601 Beginn der Zuweisung

Pattern
validTostringvereist

ISO 8601 Ende; "9999-12-31" = unbefristet (Sentinel)

Pattern
weeklyHoursnumberoptioneel

Individuelle Wochenstunden (Instanz-Parameter). Nicht gesetzt = Modell-Default.

0 – 80nullable
partTimePercentnumberoptioneel

Teilzeit-Prozentsatz auf dem partTime-Modifier des Modells. Nur sinnvoll, wenn Model partTime definiert.

0 – 100nullable
collectiveAgreementIdstringoptioneel

Optionale Tarifvertragsbindung (collective_agreements._id)

max. 64 tekensnullable
approvalStatestringoptioneel

Freigabestatus. Resolver berücksichtigt nur APPROVED für scope ∈ {TENANT, ORG_UNIT}.

DRAFTPENDING_WORKS_COUNCILAPPROVEDREJECTED
Default: "DRAFT"read-only
submittedForApprovalAtdatetimeoptioneel

Zeitpunkt der BR-Vorlage

read-onlynullable
submittedBystringoptioneel

userId der Person, die die Freigabe angefragt hat

max. 64 tekensread-onlynullable
approvedAtdatetimeoptioneel

Zeitpunkt der BR-Freigabe oder Ablehnung

read-onlynullable
approvedBystringoptioneel

userId des freigebenden BR-Mitglieds (muss != submittedBy sein)

max. 64 tekensread-onlynullable
worksCouncilCaseRefstringoptioneel

BR-Beschluss-Referenz (Nummer/Datum), frei formatiert

max. 200 tekensnullable
rejectionReasonstringoptioneel

Begründung bei approvalState === "REJECTED"

max. 4000 tekensnullable
notesstringoptioneel

Zusätzliche Notizen zur Zuweisung

max. 4000 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/working_time_assignments — Lijst, gepagineerd + filterbaar
  • GET /api/v1/working_time_assignments/<id> — Enkele entity
  • POST /api/v1/working_time_assignments — Aanmaken
  • PATCH /api/v1/working_time_assignments/<id> — Gedeeltelijke update
  • DELETE /api/v1/working_time_assignments/<id> — Soft-delete
  • GET /api/v1/working_time_assignments/<id>/timeline — Audit + activiteiten

Zoeken