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

Working Time Assignment Schema

ID du schéma
working_time_assignment
Collection
working_time_assignments
Autorisations
  • Lireworking_time_assignment_view
  • Créerworking_time_assignment_employee
  • Modifierworking_time_assignment_employee
  • Supprimerworking_time_assignment_employee

Champs

Working Time Assignment Schema

working_time_assignments4 autorisations

Hierarchische Zuweisung eines Arbeitszeitmodells an einen Scope mit Gültigkeit

scopestringobligatoire

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

TENANTORG_UNITEMPLOYEE
scopeIdstringobligatoire

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 caractères
workingTimeModelIdstringobligatoire

Referenz auf working_time_models._id

1–64 caractères
validFromstringobligatoire

ISO 8601 Beginn der Zuweisung

Motif
validTostringobligatoire

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

Motif
weeklyHoursnumberfacultatif

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

0 – 80nullable
partTimePercentnumberfacultatif

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

0 – 100nullable
collectiveAgreementIdstringfacultatif

Optionale Tarifvertragsbindung (collective_agreements._id)

max. 64 caractèresnullable
approvalStatestringfacultatif

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

DRAFTPENDING_WORKS_COUNCILAPPROVEDREJECTED
Par défaut : "DRAFT"lecture seule
submittedForApprovalAtdatetimefacultatif

Zeitpunkt der BR-Vorlage

lecture seulenullable
submittedBystringfacultatif

userId der Person, die die Freigabe angefragt hat

max. 64 caractèreslecture seulenullable
approvedAtdatetimefacultatif

Zeitpunkt der BR-Freigabe oder Ablehnung

lecture seulenullable
approvedBystringfacultatif

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

max. 64 caractèreslecture seulenullable
worksCouncilCaseRefstringfacultatif

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

max. 200 caractèresnullable
rejectionReasonstringfacultatif

Begründung bei approvalState === "REJECTED"

max. 4000 caractèresnullable
notesstringfacultatif

Zusätzliche Notizen zur Zuweisung

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

Recherche