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

Employee Profile Schema

Schema-ID
employee_profile
Collection
employee_profiles
Permissions
  • Lezenemployee_profile_view
  • Aanmakenemployee_profile_create
  • Wijzigenemployee_profile_edit
  • Verwijderenemployee_profile_delete

Velden

Employee Profile Schema

employee_profiles4 permissions

Schema for validating employee profile entities (Personalstammdaten)

userIduuidoptioneel

User UUID (optional link to users collection)

nullable
firstNamestringoptioneel

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

max. 200 tekensnullable
lastNamestringoptioneel

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

max. 200 tekensnullable
aliasesstring[]optioneel

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

max. 10 itemsunieke items
employeeNumberstringoptioneel

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

max. 50 tekensread-onlynullable
emailstringoptioneel

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 tekensnullable
orgUnitIduuidoptioneel

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
primaryOrgUnitIduuidoptioneel

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
managerIduuidoptioneel

Direct manager user UUID

nullable
absenceApprovalConfigobjectoptioneel

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
modestringoptioneel

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

REQUIREDNONEnull
nullable
approverModestringoptioneel

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[]optioneel

Nur bei approverMode=SPECIFIC_USERS: die genehmigenden Personen.

nullable
approverRoleSlugstringoptioneel

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

max. 100 tekensnullable
allowSelfApprovalAsLeadbooleanoptioneel

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[]optioneel

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

nullable
overtimeApprovalConfigobjectoptioneel

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
allowSelfApprovalAsLeadbooleanoptioneel

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
employmentTypestringvereist

Type of employment (Beschäftigungsart)

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
employmentStatusstringvereist

Current employment status

ACTIVEONBOARDINGON_LEAVEOFFBOARDINGTERMINATED
Default: "ONBOARDING"
hireDatedateoptioneel

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

probationEndDatedateoptioneel

End of probation period (Probezeit)

nullable
terminationDatedateoptioneel

Last day of employment

nullable
terminationReasonstringoptioneel

Reason for termination

max. 1000 tekensnullable
vacationDaysPerYearnumberoptioneel

Annual vacation entitlement in days

0 – 365nullable
vacationDaysRemainingnumberoptioneel

Remaining vacation days for current year

≥ 0nullable
vacationDaysCarryOvernumberoptioneel

Carried over vacation days from previous year (Resturlaub)

≥ 0nullable
weeklyScheduleobject[]optioneel

Per-weekday work schedule (Arbeitszeitplanung)

nullable
daynumbervereist

ISO weekday (1=Mon, 7=Sun)

1 – 7
startTimestringvereist

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

Pattern
endTimestringvereist

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

Pattern
breakMinutesnumberoptioneel

Break duration in minutes

0 – 480Default: 0
workingTimeModelIduuidoptioneel

Reference to working_time_model entity

nullable
skillProfileIdsuuid[]optioneel

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.

Default: []
skillsobject[]optioneel

Structured skill entries with levels

Default: []
skillIduuidvereist

UUID of the skill definition

levelstringvereist

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
interestedbooleanoptioneel

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
interestedAtdatetimeoptioneel

When the interest flag was last set to true.

nullable
currentXpintegeroptioneel

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

≥ 0Default: 0nullable
currentLevelintegeroptioneel

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

0 – 400Default: 0nullable
verifiedAtdatetimeoptioneel

When the skill was last verified

nullable
verifiedByuuidoptioneel

User UUID of the person who verified the skill

nullable
sourcestringoptioneel

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

SELF_ASSESSEDMANAGER_ASSIGNEDCERTIFICATIONAUTO_DETECTEDPERFORMANCE_REVIEW
Default: "SELF_ASSESSED"
addedAtdatetimeoptioneel

When the skill entry was first added

nullable
updatedAtdatetimeoptioneel

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

read-onlynullable
languageSkillsobject[]optioneel

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

Default: []
codestringvereist

ISO 639-1 language code

aaabaeafakamanarasavayazbabebgbhbibmbnbo
levelstringvereist

CEFR proficiency level (A1–C2) or NATIVE

A1A2B1B2C1C2NATIVE
addedAtdatetimeoptioneel
nullable
updatedAtdatetimeoptioneel
read-onlynullable
karmaintegeroptioneel

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

≥ 0Default: 0read-only
skillUpdateLogobject[]optioneel

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

max. 100 itemsDefault: []nullable
responseIduuidoptioneel

survey_response UUID that triggered this update (idempotency key)

nullable
appliedAtdatetimevereist
sourcestringoptioneel
satisfaction-surveymanualcertificationticket-closetask-donemanual-grantsurveytraining-completednull
nullable
changesobject[]vereist
skillIduuidvereist
previousLevelstringoptioneel
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
newLevelstringvereist
BEGINNERINTERMEDIATEADVANCEDEXPERT
xpDeltaintegeroptioneel

XP amount awarded in this change (new XP system)

nullable
reasonstringoptioneel

Optional human-readable reason for the change

max. 500 tekensnullable
phonestringoptioneel

Personal phone number

max. 50 tekensnullable
dateOfBirthdateoptioneel

Date of birth

nullable
emergencyContactNamestringoptioneel

Emergency contact name

max. 200 tekensnullable
emergencyContactPhonestringoptioneel

Emergency contact phone number

max. 50 tekensnullable
timeZonestringoptioneel

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 tekensnullable
holidayRegionstringoptioneel

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.

Patternnullable
mentorUserIduuidoptioneel

Assigned mentor for trainees / juniors

nullable
isMentorbooleanoptioneel

Marked as available mentor in the picker

Default: false
isSuitableForInternsbooleanoptioneel

Marked as senior who can supervise intern-grade work

Default: false
defaultSubstituteUserIduuidoptioneel

Fallback user for sick-leave auto-reassign

nullable
isApprenticebooleanoptioneel

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.

Default: false
isAusbilderbooleanoptioneel

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

Default: false
ausbilderEmployeeIduuidoptioneel

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

nullable
legalEntityIduuidoptioneel

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

nullable
workLocationIduuidoptioneel

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

nullable
qualificationobjectoptioneel

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
kindstringvereist
ausbildunghochschule
ausbildungNamestringoptioneel

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

max. 250 tekensnullable
fachrichtungstringoptioneel

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

max. 200 tekensnullable
berufsgattungCodestringoptioneel

BIBB-Berufsgattung (5-stellige Nummer)

Patternnullable
kategoriestringoptioneel

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

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

Akademischer Abschlussgrad

BACHELORMASTERDIPLOMMAGISTERSTAATSEXAMENPROMOTIONHABILITATIONBERUFSAKADEMIEOTHER
nullable
fachstringoptioneel

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

max. 200 tekensnullable
safetyRolesobject[]optioneel

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

Default: []nullable
keystringvereist

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

1–200 tekens
assignedAtdateoptioneel

Datum der Bestellung / Beauftragung

nullable
validUntildateoptioneel

Gültig bis — triggert escalation_rule-Reminder vor Ablauf

nullable
notesstringoptioneel
max. 500 tekensnullable
educationCertificatesobject[]optioneel

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

Default: []nullable
_iduuidoptioneel
read-only
titlestringvereist
1–200 tekens
issuerstringoptioneel
max. 200 tekensnullable
issuedAtdateoptioneel
nullable
validUntildateoptioneel

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

nullable
documentIduuidoptioneel

Reference to dms_document holding the certificate file

nullable
assignedAssetIdsuuid[]optioneel

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.

Default: []nullable
idDocumentVerificationsobject[]optioneel

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 itemsDefault: []read-onlynullable
_iduuidoptioneel
read-only
verifiedAtdatetimevereist

Zeitpunkt der Sichtprüfung (server-issued)

verifiedByuuidvereist

User-UUID der prüfenden HR-Person

verifiedByNamestringoptioneel

Anzeigename zum Zeitpunkt der Prüfung (Snapshot)

max. 200 tekensnullable
documentTypestringoptioneel

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

max. 64 tekensnullable
documentCountrystringoptioneel

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

max. 2 tekensPatternnullable
notesstringoptioneel
max. 500 tekensnullable
encryptedFieldsobjectoptioneel

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
starfaceAccountIdstringoptioneel

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

max. 32 tekensread-onlynullable
starfaceLoginIdstringoptioneel

Starface LOGIN_ID (informational).

max. 64 tekensread-onlynullable
starfaceInternalNumberstringoptioneel

Starface primary internal number (informational).

max. 64 tekensread-onlynullable
starfaceExternalNumberstringoptioneel

Starface primary external number (informational).

max. 64 tekensread-onlynullable
pbxAccountsobject[]optioneel

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

max. 16 itemsread-onlynullable
providerstringvereist
starfaceteamsfreeswitchxelionsipgateinnovaphone3cxnfonagfeo
accountIdstringvereist
1–128 tekens
loginIdstringoptioneel
max. 128 tekensnullable
internalNumberstringoptioneel
max. 64 tekensnullable
externalNumberstringoptioneel
max. 64 tekensnullable
assignedBystringoptioneel
manualroster
notesstringoptioneel

Free-text notes for HR admin

max. 10000 tekensnullable
externalReferencesobject[]optioneel

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.

Default: []read-only
systemstringvereist
max. 100 tekens
externalIdstringvereist
max. 200 tekens
externalVersionstringoptioneel
nullable
externalNumberstringoptioneel
max. 200 tekensnullable
syncedAtdatetimeoptioneel
nullable
lastSyncCorrelationIdstringoptioneel
nullable
lastInboundHashstringoptioneel
max. 64 tekensnullable
lastOutboundHashstringoptioneel
max. 64 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/employee_profiles — Lijst, gepagineerd + filterbaar
  • GET /api/v1/employee_profiles/<id> — Enkele entity
  • POST /api/v1/employee_profiles — Aanmaken
  • PATCH /api/v1/employee_profiles/<id> — Gedeeltelijke update
  • DELETE /api/v1/employee_profiles/<id> — Soft-delete
  • GET /api/v1/employee_profiles/<id>/timeline — Audit + activiteiten

Zoeken