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

Employee Profile Schema

ID del esquema
employee_profile
Colección
employee_profiles
Permisos
  • Leeremployee_profile_view
  • Crearemployee_profile_create
  • Modificaremployee_profile_edit
  • Eliminaremployee_profile_delete

Campos

Employee Profile Schema

employee_profiles4 permisos

Schema for validating employee profile entities (Personalstammdaten)

userIduuidopcional

User UUID (optional link to users collection)

admite null
firstNamestringopcional

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

máx. 200 caracteresadmite null
lastNamestringopcional

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

máx. 200 caracteresadmite null
aliasesstring[]opcional

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

máx. 10 elementoselementos únicos
employeeNumberstringopcional

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

máx. 50 caracteressolo lecturaadmite null
emailstringopcional

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.

máx. 320 caracteresadmite null
orgUnitIduuidopcional

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).

admite null
primaryOrgUnitIduuidopcional

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.

admite null
managerIduuidopcional

Direct manager user UUID

admite null
absenceApprovalConfigobjectopcional

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).

admite null
modestringopcional

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

REQUIREDNONEnull
admite null
approverModestringopcional

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
admite null
approverUserIdsuuid[]opcional

Nur bei approverMode=SPECIFIC_USERS: die genehmigenden Personen.

admite null
approverRoleSlugstringopcional

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

máx. 100 caracteresadmite null
allowSelfApprovalAsLeadbooleanopcional

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.

admite null
fallbackApproverUserIdsuuid[]opcional

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

admite null
overtimeApprovalConfigobjectopcional

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).

admite null
allowSelfApprovalAsLeadbooleanopcional

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.

admite null
employmentTypestringobligatorio

Type of employment (Beschäftigungsart)

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
employmentStatusstringobligatorio

Current employment status

ACTIVEONBOARDINGON_LEAVEOFFBOARDINGTERMINATED
Valor por defecto: "ONBOARDING"
hireDatedateopcional

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

probationEndDatedateopcional

End of probation period (Probezeit)

admite null
terminationDatedateopcional

Last day of employment

admite null
terminationReasonstringopcional

Reason for termination

máx. 1000 caracteresadmite null
vacationDaysPerYearnumberopcional

Annual vacation entitlement in days

0 – 365admite null
vacationDaysRemainingnumberopcional

Remaining vacation days for current year

≥ 0admite null
vacationDaysCarryOvernumberopcional

Carried over vacation days from previous year (Resturlaub)

≥ 0admite null
weeklyScheduleobject[]opcional

Per-weekday work schedule (Arbeitszeitplanung)

admite null
daynumberobligatorio

ISO weekday (1=Mon, 7=Sun)

1 – 7
startTimestringobligatorio

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

Patrón
endTimestringobligatorio

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

Patrón
breakMinutesnumberopcional

Break duration in minutes

0 – 480Valor por defecto: 0
workingTimeModelIduuidopcional

Reference to working_time_model entity

admite null
skillProfileIdsuuid[]opcional

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.

Valor por defecto: []
skillsobject[]opcional

Structured skill entries with levels

Valor por defecto: []
skillIduuidobligatorio

UUID of the skill definition

levelstringobligatorio

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
interestedbooleanopcional

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.

admite null
interestedAtdatetimeopcional

When the interest flag was last set to true.

admite null
currentXpintegeropcional

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

≥ 0Valor por defecto: 0admite null
currentLevelintegeropcional

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

0 – 400Valor por defecto: 0admite null
verifiedAtdatetimeopcional

When the skill was last verified

admite null
verifiedByuuidopcional

User UUID of the person who verified the skill

admite null
sourcestringopcional

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

SELF_ASSESSEDMANAGER_ASSIGNEDCERTIFICATIONAUTO_DETECTEDPERFORMANCE_REVIEW
Valor por defecto: "SELF_ASSESSED"
addedAtdatetimeopcional

When the skill entry was first added

admite null
updatedAtdatetimeopcional

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

solo lecturaadmite null
languageSkillsobject[]opcional

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

Valor por defecto: []
codestringobligatorio

ISO 639-1 language code

aaabaeafakamanarasavayazbabebgbhbibmbnbo
levelstringobligatorio

CEFR proficiency level (A1–C2) or NATIVE

A1A2B1B2C1C2NATIVE
addedAtdatetimeopcional
admite null
updatedAtdatetimeopcional
solo lecturaadmite null
karmaintegeropcional

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

≥ 0Valor por defecto: 0solo lectura
skillUpdateLogobject[]opcional

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

máx. 100 elementosValor por defecto: []admite null
responseIduuidopcional

survey_response UUID that triggered this update (idempotency key)

admite null
appliedAtdatetimeobligatorio
sourcestringopcional
satisfaction-surveymanualcertificationticket-closetask-donemanual-grantsurveytraining-completednull
admite null
changesobject[]obligatorio
skillIduuidobligatorio
previousLevelstringopcional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
admite null
newLevelstringobligatorio
BEGINNERINTERMEDIATEADVANCEDEXPERT
xpDeltaintegeropcional

XP amount awarded in this change (new XP system)

admite null
reasonstringopcional

Optional human-readable reason for the change

máx. 500 caracteresadmite null
phonestringopcional

Personal phone number

máx. 50 caracteresadmite null
dateOfBirthdateopcional

Date of birth

admite null
emergencyContactNamestringopcional

Emergency contact name

máx. 200 caracteresadmite null
emergencyContactPhonestringopcional

Emergency contact phone number

máx. 50 caracteresadmite null
timeZonestringopcional

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.

máx. 64 caracteresadmite null
holidayRegionstringopcional

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.

Patrónadmite null
mentorUserIduuidopcional

Assigned mentor for trainees / juniors

admite null
isMentorbooleanopcional

Marked as available mentor in the picker

Valor por defecto: false
isSuitableForInternsbooleanopcional

Marked as senior who can supervise intern-grade work

Valor por defecto: false
defaultSubstituteUserIduuidopcional

Fallback user for sick-leave auto-reassign

admite null
isApprenticebooleanopcional

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.

Valor por defecto: false
isAusbilderbooleanopcional

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

Valor por defecto: false
ausbilderEmployeeIduuidopcional

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

admite null
legalEntityIduuidopcional

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

admite null
workLocationIduuidopcional

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

admite null
qualificationobjectopcional

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.

admite null
kindstringobligatorio
ausbildunghochschule
ausbildungNamestringopcional

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

máx. 250 caracteresadmite null
fachrichtungstringopcional

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

máx. 200 caracteresadmite null
berufsgattungCodestringopcional

BIBB-Berufsgattung (5-stellige Nummer)

Patrónadmite null
kategoriestringopcional

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

ausbildung-bbigausbildung-ausserhalb-bbigausbildung-gesundheit-bundesrechtausbildung-gesundheit-landesrechtausbildung-zustaendige-stelleumschulung-zustaendige-stelle
admite null
hochschulabschlussstringopcional

Akademischer Abschlussgrad

BACHELORMASTERDIPLOMMAGISTERSTAATSEXAMENPROMOTIONHABILITATIONBERUFSAKADEMIEOTHER
admite null
fachstringopcional

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

máx. 200 caracteresadmite null
safetyRolesobject[]opcional

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

Valor por defecto: []admite null
keystringobligatorio

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

1–200 caracteres
assignedAtdateopcional

Datum der Bestellung / Beauftragung

admite null
validUntildateopcional

Gültig bis — triggert escalation_rule-Reminder vor Ablauf

admite null
notesstringopcional
máx. 500 caracteresadmite null
educationCertificatesobject[]opcional

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

Valor por defecto: []admite null
_iduuidopcional
solo lectura
titlestringobligatorio
1–200 caracteres
issuerstringopcional
máx. 200 caracteresadmite null
issuedAtdateopcional
admite null
validUntildateopcional

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

admite null
documentIduuidopcional

Reference to dms_document holding the certificate file

admite null
assignedAssetIdsuuid[]opcional

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.

Valor por defecto: []admite null
idDocumentVerificationsobject[]opcional

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

máx. 200 elementosValor por defecto: []solo lecturaadmite null
_iduuidopcional
solo lectura
verifiedAtdatetimeobligatorio

Zeitpunkt der Sichtprüfung (server-issued)

verifiedByuuidobligatorio

User-UUID der prüfenden HR-Person

verifiedByNamestringopcional

Anzeigename zum Zeitpunkt der Prüfung (Snapshot)

máx. 200 caracteresadmite null
documentTypestringopcional

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

máx. 64 caracteresadmite null
documentCountrystringopcional

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

máx. 2 caracteresPatrónadmite null
notesstringopcional
máx. 500 caracteresadmite null
encryptedFieldsobjectopcional

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

admite null
starfaceAccountIdstringopcional

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

máx. 32 caracteressolo lecturaadmite null
starfaceLoginIdstringopcional

Starface LOGIN_ID (informational).

máx. 64 caracteressolo lecturaadmite null
starfaceInternalNumberstringopcional

Starface primary internal number (informational).

máx. 64 caracteressolo lecturaadmite null
starfaceExternalNumberstringopcional

Starface primary external number (informational).

máx. 64 caracteressolo lecturaadmite null
pbxAccountsobject[]opcional

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

máx. 16 elementossolo lecturaadmite null
providerstringobligatorio
starfaceteamsfreeswitchxelionsipgateinnovaphone3cxnfonagfeo
accountIdstringobligatorio
1–128 caracteres
loginIdstringopcional
máx. 128 caracteresadmite null
internalNumberstringopcional
máx. 64 caracteresadmite null
externalNumberstringopcional
máx. 64 caracteresadmite null
assignedBystringopcional
manualroster
notesstringopcional

Free-text notes for HR admin

máx. 10000 caracteresadmite null
externalReferencesobject[]opcional

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.

Valor por defecto: []solo lectura
systemstringobligatorio
máx. 100 caracteres
externalIdstringobligatorio
máx. 200 caracteres
externalVersionstringopcional
admite null
externalNumberstringopcional
máx. 200 caracteresadmite null
syncedAtdatetimeopcional
admite null
lastSyncCorrelationIdstringopcional
admite null
lastInboundHashstringopcional
máx. 64 caracteresadmite null
lastOutboundHashstringopcional
máx. 64 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/employee_profiles — Lista, paginada y filtrable
  • GET /api/v1/employee_profiles/<id> — Una entidad
  • POST /api/v1/employee_profiles — Crear
  • PATCH /api/v1/employee_profiles/<id> — Actualización parcial
  • DELETE /api/v1/employee_profiles/<id> — Eliminación lógica
  • GET /api/v1/employee_profiles/<id>/timeline — Auditoría y actividades

Búsqueda