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

Resource Lifecycle Event Schema

ID del esquema
resource_lifecycle_event
Colección
resource_lifecycle_events
Permisos
  • Leerresource_lifecycle_event_view
  • Crearresource_lifecycle_event_create
  • Modificarresource_lifecycle_event_edit
  • Eliminarresource_lifecycle_event_delete

Campos

Resource Lifecycle Event Schema

resource_lifecycle_events4 permisos

Schema for validating resource lifecycle events (maintenance, repairs, inspections)

resourceIduuidobligatorio

Reference to the pool resource

eventTypestringobligatorio

Type of lifecycle event

MAINTENANCEREPAIRINSPECTIONUPGRADENOTEDAMAGE_REPORTRETIREMENT
titlestringobligatorio

Event title

1–200 caracteres
descriptionstringopcional

Detailed event description

máx. 5000 caracteresadmite null
performedByIduuidopcional

User who performed the work

admite null
performedByNamestringopcional

Denormalized performer name for display

máx. 200 caracteresadmite null
scheduledDatedateopcional

Scheduled date (YYYY-MM-DD)

admite null
completedDatedateopcional

Completion date (YYYY-MM-DD)

admite null
costnumberopcional

Cost of the event (e.g. repair cost)

≥ 0admite null
statusstringopcional

Event status

PLANNEDIN_PROGRESSCOMPLETEDCANCELLED
Valor por defecto: "PLANNED"
attachmentFileIdsstring[]opcional

File IDs of attached documents

Valor por defecto: []
notesstringopcional

Additional notes

máx. 5000 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/resource_lifecycle_events — Lista, paginada y filtrable
  • GET /api/v1/resource_lifecycle_events/<id> — Una entidad
  • POST /api/v1/resource_lifecycle_events — Crear
  • PATCH /api/v1/resource_lifecycle_events/<id> — Actualización parcial
  • DELETE /api/v1/resource_lifecycle_events/<id> — Eliminación lógica
  • GET /api/v1/resource_lifecycle_events/<id>/timeline — Auditoría y actividades

Búsqueda