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

Employee Profile Schema

ID du schéma
employee_profile
Collection
employee_profiles
Autorisations
  • Lireemployee_profile_view
  • Créeremployee_profile_create
  • Modifieremployee_profile_edit
  • Supprimeremployee_profile_delete

Champs

Employee Profile Schema

employee_profiles4 autorisations

Schema for validating employee profile entities (Personalstammdaten)

userIduuidfacultatif

User UUID (optional link to users collection)

nullable
firstNamestringfacultatif

First name (Vorname) — used when no user is linked

max. 200 caractèresnullable
lastNamestringfacultatif

Last name (Nachname) — used when no user is linked

max. 200 caractèresnullable
aliasesstring[]facultatif

Nicknames / aliases colleagues know the person by (searchable, visible to all staff)

max. 10 élémentséléments uniques
employeeNumberstringfacultatif

Auto-generated employee number (e.g. MA-2026-00001)

max. 50 caractèreslecture seulenullable
emailstringfacultatif

Work email address. Used as the matching key for telephony integrations (Starface userlist → starfaceAccountId) so employees WITHOUT a linked user account can still be attributed in call analytics. Plain string (no strict format validation) to keep imports forgiving.

max. 320 caractèresnullable
orgUnitIduuidfacultatif

Primary org unit UUID (legacy — use primaryOrgUnitId going forward, ADR 0036b). Write-side it is a mirror of primaryOrgUnitId; changes to either sync the org_units member arrays server-side (ADR 0368).

nullable
primaryOrgUnitIduuidfacultatif

Arbeitsrechtlich maßgebliche Org-Unit (ADR 0036b). Wird vom Working-Time-Resolver für die Hierarchie-Auflösung benutzt. Bei Matrix-Orgs: eindeutig die primäre. Falls nicht gesetzt, fällt der Resolver auf orgUnitId zurück.

nullable
managerIduuidfacultatif

Direct manager user UUID

nullable
absenceApprovalConfigobjectfacultatif

ADR 0682 — Ob und durch wen Abwesenheitsanträge genehmigt werden. Jedes Feld ist optional; null/fehlend bedeutet „von der übergeordneten Ebene erben" (Mitarbeiter → Team → Abteilung → Bereich → Mandant → Standard).

nullable
modestringfacultatif

REQUIRED = Antrag muss genehmigt werden (Standard). NONE = Antrag wird beim Anlegen sofort genehmigt, es entsteht keine Genehmigungsanfrage.

REQUIREDNONEnull
nullable
approverModestringfacultatif

ORG_UNIT_LEAD = Leitung der Organisationseinheit (Standard, mit Kette über die übergeordnete Einheit). SPECIFIC_USERS = feste Personen. ROLE = alle Inhaber einer Rolle.

ORG_UNIT_LEADSPECIFIC_USERSROLEnull
nullable
approverUserIdsuuid[]facultatif

Nur bei approverMode=SPECIFIC_USERS: die genehmigenden Personen.

nullable
approverRoleSlugstringfacultatif

Nur bei approverMode=ROLE: Slug der Rolle aus role_definitions (z. B. "hr").

max. 100 caractèresnullable
allowSelfApprovalAsLeadbooleanfacultatif

Standard true. Darf eine Person ihren eigenen Antrag genehmigen, wenn sie selbst Leitung ihrer Einheit ist und weder Doppelspitze noch übergeordnete Leitung gepflegt sind? Gilt NUR für Leitungen — ein Mitarbeitender ohne gepflegte Teamleitung genehmigt sich dadurch nicht selbst.

nullable
fallbackApproverUserIdsuuid[]facultatif

Auffanglinie: greift, wenn die reguläre Kette keine erreichbaren Genehmiger liefert.

nullable
overtimeApprovalConfigobjectfacultatif

ADR 0709 — Ob eine Leitung die eigene Überstundenbuchung freigeben darf. Jedes Feld ist optional; null/fehlend bedeutet „von der übergeordneten Ebene erben" (Mitarbeiter → Team → Abteilung → Bereich → Mandant → Standard).

nullable
allowSelfApprovalAsLeadbooleanfacultatif

Standard FALSE (anders als bei der Urlaubsgenehmigung — ohne ausdrückliche Einstellung bleibt es beim 4-Augen-Prinzip). Darf eine Person ihre eigene Überstundenbuchung freigeben, wenn sie Leitung einer ihrer Einheiten ist? Gilt NUR für Leitungen; wer die Berechtigung overtime_approve ohne Leitungsfunktion hat, kann sich dadurch nicht selbst freigeben. Anders als beim Urlaub greift die Regel auch dann, wenn eine zweite oder übergeordnete Leitung verfügbar wäre.

nullable
employmentTypestringobligatoire

Type of employment (Beschäftigungsart)

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
employmentStatusstringobligatoire

Current employment status

ACTIVEONBOARDINGON_LEAVEOFFBOARDINGTERMINATED
Par défaut : "ONBOARDING"
hireDatedatefacultatif

First day of employment (ISO 8601 date: YYYY-MM-DD). Optional.

probationEndDatedatefacultatif

End of probation period (Probezeit)

nullable
terminationDatedatefacultatif

Last day of employment

nullable
terminationReasonstringfacultatif

Reason for termination

max. 1000 caractèresnullable
vacationDaysPerYearnumberfacultatif

Annual vacation entitlement in days

0 – 365nullable
vacationDaysRemainingnumberfacultatif

Remaining vacation days for current year

≥ 0nullable
vacationDaysCarryOvernumberfacultatif

Carried over vacation days from previous year (Resturlaub)

≥ 0nullable
weeklyScheduleobject[]facultatif

Per-weekday work schedule (Arbeitszeitplanung)

nullable
daynumberobligatoire

ISO weekday (1=Mon, 7=Sun)

1 – 7
startTimestringobligatoire

Work start time (e.g. "08:00")

Motif
endTimestringobligatoire

Work end time (e.g. "17:00")

Motif
breakMinutesnumberfacultatif

Break duration in minutes

0 – 480Par défaut : 0
workingTimeModelIduuidfacultatif

Reference to working_time_model entity

nullable
skillProfileIdsuuid[]facultatif

Tätigkeitsprofile this employee works in (FK skill_profile, ADR 0639) — the ROW side of the skill matrix, mirroring skill_definition.profileIds on the column side. EMPTY = shown in every profile filter (backfill-free: nothing changes for existing tenants). 🔴 Deliberately NOT derived from the org unit: Team 2 and Team 3 are different departments but need the same skills, and a dispatcher who also works technically fits no single department. Multi-valued for exactly that case.

Par défaut : []
skillsobject[]facultatif

Structured skill entries with levels

Par défaut : []
skillIduuidobligatoire

UUID of the skill definition

levelstringobligatoire

Proficiency level. INTERESTED is a legacy level-0 interest marker (no proficiency, no XP, never satisfies a scheduling minimum) — deprecated as a level value in favour of the orthogonal `interested` flag below; still read as a fallback. BEGINNER..EXPERT is the legacy 4-tier enum kept in sync with currentLevel. Prefer currentXp/currentLevel for new proficiency logic.

INTERESTEDBEGINNERINTERMEDIATEADVANCEDEXPERT
interestedbooleanfacultatif

Orthogonal interest flag (ADR 0223): the employee wants to develop / is interested in this skill, INDEPENDENT of proficiency. Can be true alongside any real level (e.g. EXPERT + interested). Set self-service by the employee on their own profile. Legacy entries with level==="INTERESTED" are treated as interested at read time even when this flag is absent.

nullable
interestedAtdatetimefacultatif

When the interest flag was last set to true.

nullable
currentXpintegerfacultatif

Accumulated XP for this skill. Awarded on ticket/task completion or via manual grant. Drives currentLevel.

≥ 0Par défaut : 0nullable
currentLevelintegerfacultatif

Numeric level (1–400) across 4 tiers of 100 levels each. Derived from currentXp on XP award, but stored for efficient queries.

0 – 400Par défaut : 0nullable
verifiedAtdatetimefacultatif

When the skill was last verified

nullable
verifiedByuuidfacultatif

User UUID of the person who verified the skill

nullable
sourcestringfacultatif

How the skill was assigned. PERFORMANCE_REVIEW marks interests carried over from a completed Mitarbeitergespräch.

SELF_ASSESSEDMANAGER_ASSIGNEDCERTIFICATIONAUTO_DETECTEDPERFORMANCE_REVIEW
Par défaut : "SELF_ASSESSED"
addedAtdatetimefacultatif

When the skill entry was first added

nullable
updatedAtdatetimefacultatif

When the skill entry was last updated (level change, re-verification)

lecture seulenullable
languageSkillsobject[]facultatif

Spoken/written languages with CEFR proficiency level, used for language-aware ticket dispatch

Par défaut : []
codestringobligatoire

ISO 639-1 language code

aaabaeafakamanarasavayazbabebgbhbibmbnbo
levelstringobligatoire

CEFR proficiency level (A1–C2) or NATIVE

A1A2B1B2C1C2NATIVE
addedAtdatetimefacultatif
nullable
updatedAtdatetimefacultatif
lecture seulenullable
karmaintegerfacultatif

ADR 0224: running karma total (engagement/fairness score). Server-managed: awarded on verified task completion when tenant.features.karmaEnabled. Audit trail in karma_ledger.

≥ 0Par défaut : 0lecture seule
skillUpdateLogobject[]facultatif

Audit trail of automatic skill-level changes triggered by survey responses or other sources

max. 100 élémentsPar défaut : []nullable
responseIduuidfacultatif

survey_response UUID that triggered this update (idempotency key)

nullable
appliedAtdatetimeobligatoire
sourcestringfacultatif
satisfaction-surveymanualcertificationticket-closetask-donemanual-grantsurveytraining-completednull
nullable
changesobject[]obligatoire
skillIduuidobligatoire
previousLevelstringfacultatif
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
newLevelstringobligatoire
BEGINNERINTERMEDIATEADVANCEDEXPERT
xpDeltaintegerfacultatif

XP amount awarded in this change (new XP system)

nullable
reasonstringfacultatif

Optional human-readable reason for the change

max. 500 caractèresnullable
phonestringfacultatif

Personal phone number

max. 50 caractèresnullable
dateOfBirthdatefacultatif

Date of birth

nullable
emergencyContactNamestringfacultatif

Emergency contact name

max. 200 caractèresnullable
emergencyContactPhonestringfacultatif

Emergency contact phone number

max. 50 caractèresnullable
timeZonestringfacultatif

IANA-Zeitzone (z.B. "Europe/Berlin"). Override gegenüber org_unit.timeZone / tenant default. Wird u.a. für Zuschlag-Zeitfenster und DST-Handling genutzt.

max. 64 caractèresnullable
holidayRegionstringfacultatif

ISO 3166-2 Feiertagsregion (z.B. "DE-NW"). Override gegenüber org_unit.holidayRegion / tenant.settings.defaultHolidayRegion. Relevant für MA im Homeoffice in anderem Bundesland.

Motifnullable
mentorUserIduuidfacultatif

Assigned mentor for trainees / juniors

nullable
isMentorbooleanfacultatif

Marked as available mentor in the picker

Par défaut : false
isSuitableForInternsbooleanfacultatif

Marked as senior who can supervise intern-grade work

Par défaut : false
defaultSubstituteUserIduuidfacultatif

Fallback user for sick-leave auto-reassign

nullable
isApprenticebooleanfacultatif

Auszubildender: befindet sich in der Ausbildung und hat noch keinen Abschluss. Dient als Gate für den (separat gebauten) Berichtsheft-/Ausbildungsnachweis-Bereich, der nur für Auszubildende sichtbar ist.

Par défaut : false
isAusbilderbooleanfacultatif

Markiert den Mitarbeiter als Ausbilder (kann Auszubildende ausbilden / ist im Ausbilder-Picker eines Auszubildenden wählbar).

Par défaut : false
ausbilderEmployeeIduuidfacultatif

employee_profiles-UUID des diesem Auszubildenden zugewiesenen Ausbilders. Referenziert einen Mitarbeiter (nicht user), damit auch Ausbilder ohne Login zuordenbar sind.

nullable
legalEntityIduuidfacultatif

Rechtliche Einheit (party UUID — typically the operating company, e.g. ITF or Codemeta).

nullable
workLocationIduuidfacultatif

Primary work location (asset/site UUID; references the company address/site).

nullable
qualificationobjectfacultatif

Berufs- oder Studienabschluss. `kind: "ausbildung"` referenziert einen Eintrag aus dem BIBB-Verzeichnis (apps/api/src/data/ausbildungsberufe-2026.jsonl); `kind: "hochschule"` erfasst Abschlussgrad + freies Studienfach.

nullable
kindstringobligatoire
ausbildunghochschule
ausbildungNamestringfacultatif

Berufsbezeichnung aus dem BIBB-Verzeichnis (z. B. "Tierwirt/Tierwirtin")

max. 250 caractèresnullable
fachrichtungstringfacultatif

Fachrichtung der Ausbildung, falls anwendbar (z. B. "Imkerei")

max. 200 caractèresnullable
berufsgattungCodestringfacultatif

BIBB-Berufsgattung (5-stellige Nummer)

Motifnullable
kategoriestringfacultatif

Kategorie aus dem BIBB-Verzeichnis (s. Reference-Data-Endpoint)

ausbildung-bbigausbildung-ausserhalb-bbigausbildung-gesundheit-bundesrechtausbildung-gesundheit-landesrechtausbildung-zustaendige-stelleumschulung-zustaendige-stelle
nullable
hochschulabschlussstringfacultatif

Akademischer Abschlussgrad

BACHELORMASTERDIPLOMMAGISTERSTAATSEXAMENPROMOTIONHABILITATIONBERUFSAKADEMIEOTHER
nullable
fachstringfacultatif

Studienfach (Freitext, z. B. "Wirtschaftsinformatik")

max. 200 caractèresnullable
safetyRolesobject[]facultatif

Arbeitsrechtliche Sicherheitsrollen (Ersthelfer, Brandschutzhelfer, Sicherheitsbeauftragter, Datenschutzbeauftragter, ...). Mehrfachzuweisung erlaubt; freie Werte sind zugelassen, damit nicht-katalogisierte Rollen gepflegt werden können.

Par défaut : []nullable
keystringobligatoire

Stabiler Bezeichner (für Standardrollen einer aus SAFETY_ROLE_CATALOG; für Sonstige der frei eingegebene Rollenname).

1–200 caractères
assignedAtdatefacultatif

Datum der Bestellung / Beauftragung

nullable
validUntildatefacultatif

Gültig bis — triggert escalation_rule-Reminder vor Ablauf

nullable
notesstringfacultatif
max. 500 caractèresnullable
educationCertificatesobject[]facultatif

Studienbescheinigungen / Ausbildungsnachweise. The actual file lives in the DMS; this is metadata + expiry.

Par défaut : []nullable
_iduuidfacultatif
lecture seule
titlestringobligatoire
1–200 caractères
issuerstringfacultatif
max. 200 caractèresnullable
issuedAtdatefacultatif
nullable
validUntildatefacultatif

Ablaufdatum — when set, an escalation_rule reminder fires before expiry.

nullable
documentIduuidfacultatif

Reference to dms_document holding the certificate file

nullable
assignedAssetIdsuuid[]facultatif

UUIDs of assets handed out to the employee (laptop, phone, keycard, …). Asset entity carries the canonical assignment record; this is a denormalised quick-access list.

Par défaut : []nullable
idDocumentVerificationsobject[]facultatif

Append-only Liste der HR-Sichtprüfungen des Ausweisdokuments. Jede Verifikation speichert wer und wann geprüft hat — Dokumentennummer wird DSGVO-konform nicht erfasst.

max. 200 élémentsPar défaut : []lecture seulenullable
_iduuidfacultatif
lecture seule
verifiedAtdatetimeobligatoire

Zeitpunkt der Sichtprüfung (server-issued)

verifiedByuuidobligatoire

User-UUID der prüfenden HR-Person

verifiedByNamestringfacultatif

Anzeigename zum Zeitpunkt der Prüfung (Snapshot)

max. 200 caractèresnullable
documentTypestringfacultatif

Dokumenttyp zum Zeitpunkt der Prüfung (PERSONALAUSWEIS, REISEPASS, AUFENTHALTSTITEL, …) — Snapshot, damit Typänderungen die Historie nicht verfälschen.

max. 64 caractèresnullable
documentCountrystringfacultatif

ISO 3166-1 alpha-2 Ausstellerstaat zum Zeitpunkt der Prüfung — Snapshot.

max. 2 caractèresMotifnullable
notesstringfacultatif
max. 500 caractèresnullable
encryptedFieldsobjectfacultatif

Map of field-name → encrypted envelope (AES-256-GCM, employee DEK). See EMPLOYEE_PROFILE_ZK_FIELDS for the registered field set and visibility category.

nullable
starfaceAccountIdstringfacultatif

Starface ACCOUNT_ID this employee maps to (matched by email).

max. 32 caractèreslecture seulenullable
starfaceLoginIdstringfacultatif

Starface LOGIN_ID (informational).

max. 64 caractèreslecture seulenullable
starfaceInternalNumberstringfacultatif

Starface primary internal number (informational).

max. 64 caractèreslecture seulenullable
starfaceExternalNumberstringfacultatif

Starface primary external number (informational).

max. 64 caractèreslecture seulenullable
pbxAccountsobject[]facultatif

Provider-neutral PBX account mapping (ADR 0941 §6). System-managed via roster or the integration mapping view.

max. 16 élémentslecture seulenullable
providerstringobligatoire
starfaceteamsfreeswitchxelionsipgateinnovaphone3cxnfonagfeo
accountIdstringobligatoire
1–128 caractères
loginIdstringfacultatif
max. 128 caractèresnullable
internalNumberstringfacultatif
max. 64 caractèresnullable
externalNumberstringfacultatif
max. 64 caractèresnullable
assignedBystringfacultatif
manualroster
notesstringfacultatif

Free-text notes for HR admin

max. 10000 caractèresnullable
externalReferencesobject[]facultatif

Cross-System-Verknüpfungen (ADR 0147 §3). Pro Fremdsystem ein Eintrag mit stabiler externer Id und den beiden Echo-Hashes. Wird ausschließlich von Sync-Pfaden geschrieben, nie über die generische CRUD-Oberfläche.

Par défaut : []lecture seule
systemstringobligatoire
max. 100 caractères
externalIdstringobligatoire
max. 200 caractères
externalVersionstringfacultatif
nullable
externalNumberstringfacultatif
max. 200 caractèresnullable
syncedAtdatetimefacultatif
nullable
lastSyncCorrelationIdstringfacultatif
nullable
lastInboundHashstringfacultatif
max. 64 caractèresnullable
lastOutboundHashstringfacultatif
max. 64 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/employee_profiles — Liste, paginée et filtrable
  • GET /api/v1/employee_profiles/<id> — Une entité
  • POST /api/v1/employee_profiles — Créer
  • PATCH /api/v1/employee_profiles/<id> — Mise à jour partielle
  • DELETE /api/v1/employee_profiles/<id> — Suppression logique
  • GET /api/v1/employee_profiles/<id>/timeline — Audit et activités

Recherche