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

Fleet Driver Schema

ID du schéma
fleet_driver
Collection
fleet_drivers
Autorisations
  • Lirefleet_driver_view
  • Créerfleet_driver_create
  • Modifierfleet_driver_edit
  • Supprimerfleet_driver_delete

Champs

Fleet Driver Schema

fleet_drivers4 autorisations

Schema for validating fleet driver / Fahrer entities

userIduuidfacultatif

Reference to internal user (optional for external drivers)

nullable
employeeProfileIduuidfacultatif

Reference to employee_profiles entity. When set, personal data (name, email, phone, department, employeeNumber) is read live from the profile and cannot be edited on the driver.

nullable
firstNamestringobligatoire

First name / Vorname

1–100 caractères
lastNamestringobligatoire

Last name / Nachname

1–100 caractères
emailemailobligatoire

Email address

max. 200 caractèresnullable
phonestringfacultatif

Phone number

max. 50 caractèresnullable
employeeNumberstringfacultatif

Employee number / Personalnummer

max. 50 caractèresnullable
departmentstringfacultatif

Department / Abteilung

max. 200 caractèresnullable
licenseNumberstringfacultatif

Driver license number / Führerscheinnummer

max. 50 caractèresnullable
licenseClassesstring[]facultatif

License classes (e.g. B, BE, C1, CE)

Par défaut : []
licenseExpirydatefacultatif

License expiry date

nullable
licenseIssuedDatedatefacultatif

License issue date

nullable
licenseIssuingAuthoritystringfacultatif

Issuing authority / Ausstellende Behörde

max. 200 caractèresnullable
lastLicenseCheckDatedatefacultatif

Last driver license check date

nullable
nextLicenseCheckDatedatefacultatif

Next driver license check due date

nullable
licenseCheckResultstringfacultatif

Result of last license check

VALIDEXPIREDSUSPENDEDRESTRICTED
nullable
licenseCheckStatusstringfacultatif

Self-service license check workflow status

NONEAWAITING_UPLOADAWAITING_AI_REVIEWAWAITING_MANAGER_REVIEWVALIDREJECTED
Par défaut : "NONE"nullable
licenseCheckTokenHashstringfacultatif

SHA256 hash of the self-service token

nullable
licenseCheckTokenExpiresAtdatetimefacultatif

Token expiry timestamp

nullable
licenseCheckRequestedAtdatetimefacultatif

When the check was last requested

nullable
licenseCheckRequestedByuuidfacultatif

userId of the fleet manager who requested the check

nullable
licenseCheckFrontAttachmentIdstringfacultatif

File ID for front of license photo

nullable
licenseCheckBackAttachmentIdstringfacultatif

File ID for back of license photo

nullable
licenseCheckUploadedAtdatetimefacultatif

When the driver uploaded their license photos

nullable
licenseCheckAiReviewStatusstringfacultatif

AI review processing status

pendingcompletedfailed
nullable
licenseCheckAiReviewFeedbackstringfacultatif

AI review feedback text

max. 5000 caractèresnullable
licenseCheckAiReviewScorenumberfacultatif

AI review score (0-100)

0 – 100nullable
licenseCheckAiReviewConfidencenumberfacultatif

AI review confidence (0-1)

0 – 1nullable
licenseCheckAiNameMatchbooleanfacultatif

Whether the name on the license matches the driver record

nullable
licenseCheckConsentGivenAtdatetimefacultatif

Timestamp when the driver consented to digital/AI processing

nullable
licenseCheckAiExtractedDataobjectfacultatif

AI-extracted license data (number, classes, expiry, holder name)

nullable
uvvStatusstringfacultatif

UVV inspection status

CURRENTOVERDUENOT_REQUIRED
Par défaut : "NOT_REQUIRED"
lastUvvDatedatefacultatif

Last UVV inspection date

nullable
nextUvvDatedatefacultatif

Next UVV inspection due date

nullable
uvvTrainingRequiredbooleanfacultatif

Whether this driver requires UVV training (Fahrerunterweisung)

Par défaut : true
uvvRecurrenceMonthsnumberfacultatif

Recurrence interval in months (typically 12 for annual)

1 – 60Par défaut : 12nullable
lastUvvCompletedAtdatefacultatif

Date when last UVV training cycle was fully completed (denormalized)

nullable
nextUvvDueDatedatefacultatif

Deadline for next UVV training cycle (denormalized)

nullable
uvvTrainingCourseIduuidfacultatif

DEPRECATED — LMS course ID, now lives on training_assignment

nullable
uvvTrainingStatusstringfacultatif

DEPRECATED — status now derived from training_assignments

NOT_REQUIREDPENDINGIN_PROGRESSAWAITING_ORAL_CONFIRMATIONAWAITING_DRIVER_ACKNOWLEDGMENTCURRENTOVERDUE
Par défaut : "PENDING"
uvvTrainingRecurrenceMonthsnumberfacultatif

DEPRECATED — use uvvRecurrenceMonths instead

1 – 60nullable
lastUvvTrainingDatedatefacultatif

DEPRECATED — use lastUvvCompletedAt instead

nullable
nextUvvTrainingDatedatefacultatif

DEPRECATED — use nextUvvDueDate instead

nullable
activeTrainingAssignmentIduuidfacultatif

DEPRECATED — derived from training_assignments query

nullable
uvvOralConfirmedAtdatetimefacultatif

DEPRECATED — oral confirmation removed

nullable
uvvOralConfirmedByuuidfacultatif

DEPRECATED — oral confirmation removed

nullable
uvvDriverAcknowledgedAtdatetimefacultatif

DEPRECATED — oral confirmation removed

nullable
uvvAcknowledgmentTokenHashstringfacultatif

DEPRECATED — oral confirmation removed

nullable
uvvAcknowledgmentTokenExpiresAtdatetimefacultatif

DEPRECATED — oral confirmation removed

nullable
statusstringfacultatif

Driver status

ACTIVEINACTIVESUSPENDED
Par défaut : "ACTIVE"
assignedVehicleIdsuuid[]facultatif

Assigned vehicle IDs

Par défaut : []
notesstringfacultatif

Free-text notes

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

Recherche