API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · employment_contracts

Employment Contract Schema

ID del esquema
employment_contract
Colección
employment_contracts
Permisos
  • Leeremployment_contract_view
  • Crearemployment_contract_create
  • Modificaremployment_contract_edit
  • Eliminaremployment_contract_delete

Campos

Employment Contract Schema

employment_contracts4 permisos

Schema for versioned employment contracts (Arbeitsverträge)

employeeProfileIduuidobligatorio

UUID of the employee_profile this contract version belongs to

revisionintegerobligatorio

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

≥ 1solo lectura
effectiveFromdateobligatorio

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

effectiveUntildateopcional

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

solo lecturaadmite null
supersededByuuidopcional

UUID of the employment_contract that supersedes this one

solo lecturaadmite null
supersededAtdatetimeopcional

When this version was superseded

solo lecturaadmite null
changeReasonstringopcional

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

máx. 500 caracteresadmite null
contractTypestringobligatorio

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

PERMANENTFIXED_TERMTEMPORARYTRAININGINTERNSHIP
contractEndDatedateopcional

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

admite null
probationEndDatedateopcional

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

admite null
noticePeriodDaysintegeropcional

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

0 – 730admite null
roleDescriptionstringopcional

Free-text role description (Tätigkeitsbeschreibung)

máx. 5000 caracteresadmite null
positionTitlestringopcional

Job title for this contract version (Stellenbezeichnung)

máx. 200 caracteresadmite null
workingTimeModelstringobligatorio

Working-time model for this contract

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
weeklyHoursnumberopcional

Contracted weekly hours

0 – 168admite null
workingTimeModelIduuidopcional

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

admite null
vacationDaysPerYearnumberopcional

Annual vacation entitlement in days

0 – 365admite null
encryptedFieldsobjectopcional

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.

admite null
statusstringopcional

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

DRAFTACTIVESUPERSEDEDTERMINATED
Valor por defecto: "DRAFT"solo lectura
signedDocumentIduuidopcional

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

admite null
attachmentDocumentIdsuuid[]opcional

Additional dms_document IDs (annexes, side letters)

Valor por defecto: []admite null
notesstringopcional

Free-text internal notes

máx. 10000 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/employment_contracts — Lista, paginada y filtrable
  • GET /api/v1/employment_contracts/<id> — Una entidad
  • POST /api/v1/employment_contracts — Crear
  • PATCH /api/v1/employment_contracts/<id> — Actualización parcial
  • DELETE /api/v1/employment_contracts/<id> — Eliminación lógica
  • GET /api/v1/employment_contracts/<id>/timeline — Auditoría y actividades

Búsqueda