causes_downtime)reactivates_production)data)data)reactivates_production)info - Informaciónlow - Bajamedium - Mediahigh - Altacritical - Críticaopen - Abierto (default al crear)assigned - Asignadoin_progress - En progresoresolved - Resueltoclosed - Cerradoignored - Ignoradocauses_downtime (boolean) - Solo para tipo failurereactivates_production (boolean) - Solo para tipos production y maintenancedata (object) - Para tipos quality y process_variablecurl --location --request POST 'https://test.your-api-server.com/api/mes/scheduling/507f1f77bcf86cd799439011/events' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"record_type": "event",
"schema_version": "1.0.0",
"timestamp": "2025-01-18T10:30:00Z",
"event_type": "failure",
"severity": "high",
"status": "open",
"title": "Falla en motor principal",
"description": "Motor principal presenta sobrecalentamiento y ruido anormal. Producción detenida.",
"causes_downtime": true,
"tags": [
"motor",
"mantenimiento-correctivo",
"urgente"
],
"timestamps": {
"occurred_at": "2025-01-18T10:30:00Z",
"reported_at": "2025-01-18T10:32:00Z"
}
}'{
"success": true,
"message": "Event registrado exitosamente",
"event": {
"record_id": "string",
"scheduleId": "string",
"timestamp": "2019-08-24T14:15:22.123Z",
"event_type": "failure",
"severity": "info",
"status": "open",
"title": "string",
"description": "string"
}
}