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

Resource Lifecycle Event Schema

ID du schéma
resource_lifecycle_event
Collection
resource_lifecycle_events
Autorisations
  • Lireresource_lifecycle_event_view
  • Créerresource_lifecycle_event_create
  • Modifierresource_lifecycle_event_edit
  • Supprimerresource_lifecycle_event_delete

Champs

Resource Lifecycle Event Schema

resource_lifecycle_events4 autorisations

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

resourceIduuidobligatoire

Reference to the pool resource

eventTypestringobligatoire

Type of lifecycle event

MAINTENANCEREPAIRINSPECTIONUPGRADENOTEDAMAGE_REPORTRETIREMENT
titlestringobligatoire

Event title

1–200 caractères
descriptionstringfacultatif

Detailed event description

max. 5000 caractèresnullable
performedByIduuidfacultatif

User who performed the work

nullable
performedByNamestringfacultatif

Denormalized performer name for display

max. 200 caractèresnullable
scheduledDatedatefacultatif

Scheduled date (YYYY-MM-DD)

nullable
completedDatedatefacultatif

Completion date (YYYY-MM-DD)

nullable
costnumberfacultatif

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

≥ 0nullable
statusstringfacultatif

Event status

PLANNEDIN_PROGRESSCOMPLETEDCANCELLED
Par défaut : "PLANNED"
attachmentFileIdsstring[]facultatif

File IDs of attached documents

Par défaut : []
notesstringfacultatif

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

Recherche