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

Employment Contract Schema

ID du schéma
employment_contract
Collection
employment_contracts
Autorisations
  • Lireemployment_contract_view
  • Créeremployment_contract_create
  • Modifieremployment_contract_edit
  • Supprimeremployment_contract_delete

Champs

Employment Contract Schema

employment_contracts4 autorisations

Schema for versioned employment contracts (Arbeitsverträge)

employeeProfileIduuidobligatoire

UUID of the employee_profile this contract version belongs to

revisionintegerobligatoire

Sequential contract revision per employee (1 = initial contract, 2 = first amendment, ...)

≥ 1lecture seule
effectiveFromdateobligatoire

First day on which this version is in effect (YYYY-MM-DD)

effectiveUntildatefacultatif

Last day this version is in effect. null on the currently active version. Set automatically when a new version is created.

lecture seulenullable
supersededByuuidfacultatif

UUID of the employment_contract that supersedes this one

lecture seulenullable
supersededAtdatetimefacultatif

When this version was superseded

lecture seulenullable
changeReasonstringfacultatif

Free-text reason for this contract change (e.g. "Gehaltserhöhung 2026", "Wechsel auf 30h"). Required when creating a v>=2.

max. 500 caractèresnullable
contractTypestringobligatoire

Permanent (unbefristet), fixed-term (befristet), or other forms

PERMANENTFIXED_TERMTEMPORARYTRAININGINTERNSHIP
contractEndDatedatefacultatif

End date of the contract (only set for FIXED_TERM/TEMPORARY)

nullable
probationEndDatedatefacultatif

End of probation period (Probezeit). null if no probation.

nullable
noticePeriodDaysintegerfacultatif

Notice period in days (Kündigungsfrist), null = legal default

0 – 730nullable
roleDescriptionstringfacultatif

Free-text role description (Tätigkeitsbeschreibung)

max. 5000 caractèresnullable
positionTitlestringfacultatif

Job title for this contract version (Stellenbezeichnung)

max. 200 caractèresnullable
workingTimeModelstringobligatoire

Working-time model for this contract

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
weeklyHoursnumberfacultatif

Contracted weekly hours

0 – 168nullable
workingTimeModelIduuidfacultatif

Reference to a working_time_model entity (shift pattern, flex windows, ...)

nullable
vacationDaysPerYearnumberfacultatif

Annual vacation entitlement in days

0 – 365nullable
encryptedFieldsobjectfacultatif

Map of field-name → encrypted envelope. Encrypted client-side with the employee DEK; the server never sees plaintext. See EMPLOYMENT_CONTRACT_ZK_FIELDS for the registered field set and their visibility category.

nullable
statusstringfacultatif

DRAFT = work in progress, ACTIVE = currently in force, SUPERSEDED = replaced by newer version, TERMINATED = employment ended

DRAFTACTIVESUPERSEDEDTERMINATED
Par défaut : "DRAFT"lecture seule
signedDocumentIduuidfacultatif

UUID of the dms_document containing the signed PDF of this contract version

nullable
attachmentDocumentIdsuuid[]facultatif

Additional dms_document IDs (annexes, side letters)

Par défaut : []nullable
notesstringfacultatif

Free-text internal notes

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

Recherche