codigo: Código del evento (string, obligatorio)estado: Estado de la línea ("RUNNING", "STOPPED", "MAINTENANCE", etc.)cantidad: Cantidad producida o valor de la variableunidad: Unidad de medida (kg, ton, °C, bar, etc.)molino: Identificador del molino/línea_idProductionLine: ID de la línea de producción (ObjectId)receta: Nombre de la receta en producciónsilo: Identificador del silo destinokwhpd004, kwhpd005, kwhpd006: Consumo eléctrico en kWhm3gas: Consumo de gas en m³m3ton: Relación m³/toncurl --location --request POST 'https://test.your-api-server.com/api/mes/production-logs' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"codigo": "VAR_TEMP_001",
"unidad": "°C",
"cantidad": 85.5,
"estado": "RUNNING",
"molino": "M1",
"_idProductionLine": "507f1f77bcf86cd799439011",
"receta": "Concreto 3000 PSI",
"silo": "SILO_A"
}'{
"msg": "Production Log creado exitosamente",
"productionLog": {
"_id": "507f1f77bcf86cd799439011",
"codigo": "PROD_BATCH_COMPLETE",
"unidad": "kg",
"cantidad": 1250,
"estado": "RUNNING",
"molino": "M1",
"_idProductionLine": "507f1f77bcf86cd799439011",
"receta": "Concreto 3000 PSI",
"silo": "SILO_A",
"kwhpd004": 12.5,
"kwhpd005": 8.3,
"kwhpd006": 15.7,
"m3gas": 2.1,
"m3ton": 0.00168,
"migrate": [
{
"type": "to_warehouse",
"date": "2025-01-18T10:30:00Z"
}
],
"createdAt": "2025-01-18T09:15:30Z",
"updatedAt": "2025-01-18T09:15:30Z"
}
}