Entité · resource_lifecycle_events
Resource Lifecycle Event Schema
Champs
Resource Lifecycle Event Schema
Schema for validating resource lifecycle events (maintenance, repairs, inspections)
resourceId
Reference to the pool resource
eventType
Type of lifecycle event
Valeurs
MAINTENANCEREPAIRINSPECTIONUPGRADENOTEDAMAGE_REPORTRETIREMENTtitle
Event title
1–200 caractères
description
Detailed event description
max. 5000 caractèresnullable
performedById
User who performed the work
nullable
performedByName
Denormalized performer name for display
max. 200 caractèresnullable
scheduledDate
Scheduled date (YYYY-MM-DD)
nullable
completedDate
Completion date (YYYY-MM-DD)
nullable
cost
Cost of the event (e.g. repair cost)
≥ 0nullable
status
Event status
Valeurs
PLANNEDIN_PROGRESSCOMPLETEDCANCELLEDPar défaut : "PLANNED"
attachmentFileIds
File IDs of attached documents
Par défaut : []
notes
Additional notes
max. 5000 caractèresnullable
Aucun champ ne correspond au filtre.
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/resource_lifecycle_events— Liste, paginée et filtrableGET /api/v1/resource_lifecycle_events/<id>— Une entitéPOST /api/v1/resource_lifecycle_events— CréerPATCH /api/v1/resource_lifecycle_events/<id>— Mise à jour partielleDELETE /api/v1/resource_lifecycle_events/<id>— Suppression logiqueGET /api/v1/resource_lifecycle_events/<id>/timeline— Audit et activités