Entidad · resource_lifecycle_events
Resource Lifecycle Event Schema
Campos
Resource Lifecycle Event Schema
Schema for validating resource lifecycle events (maintenance, repairs, inspections)
resourceId
Reference to the pool resource
eventType
Type of lifecycle event
Valores
MAINTENANCEREPAIRINSPECTIONUPGRADENOTEDAMAGE_REPORTRETIREMENTtitle
Event title
1–200 caracteres
description
Detailed event description
máx. 5000 caracteresadmite null
performedById
User who performed the work
admite null
performedByName
Denormalized performer name for display
máx. 200 caracteresadmite null
scheduledDate
Scheduled date (YYYY-MM-DD)
admite null
completedDate
Completion date (YYYY-MM-DD)
admite null
cost
Cost of the event (e.g. repair cost)
≥ 0admite null
status
Event status
Valores
PLANNEDIN_PROGRESSCOMPLETEDCANCELLEDValor por defecto: "PLANNED"
attachmentFileIds
File IDs of attached documents
Valor por defecto: []
notes
Additional notes
máx. 5000 caracteresadmite null
Ningún campo coincide con el filtro.
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/resource_lifecycle_events— Lista, paginada y filtrableGET /api/v1/resource_lifecycle_events/<id>— Una entidadPOST /api/v1/resource_lifecycle_events— CrearPATCH /api/v1/resource_lifecycle_events/<id>— Actualización parcialDELETE /api/v1/resource_lifecycle_events/<id>— Eliminación lógicaGET /api/v1/resource_lifecycle_events/<id>/timeline— Auditoría y actividades