/v1/spec-checkEvaluates measurements against the limits you send, using the same rule-based method as the workspace (calibra-spec-check). Nothing is stored.
Scope: spec_check:run
curl -X POST https://<your-oqelvia-domain>/api/public/v1/spec-check \
-H "Authorization: Bearer cb_live_…" \
-H "Content-Type: application/json" \
-d '{
"product": "Pan bread",
"batch": "B-1042",
"measurements": [
{ "parameter": "Moisture", "value": 40.6, "unit": "%", "spec_min": 38, "spec_max": 40 },
{ "parameter": "Protein", "value": 12.1, "unit": "%", "spec_min": 11.5, "spec_max": 12.5 }
]
}'{
"product": "Pan bread",
"batch": "B-1042",
"method_version": "calibra-spec-check 1.0.0",
"results": [ { "parameter": "Moisture", "mean": 40.6, "status": "review", … } ],
"deviations": [ { "parameter": "Moisture", "limit": "≤ 40", "delta": 0.6, "severity": "review" } ],
"recommendations": [ "Moisture: observed mean 40.6 % is outside the specification …" ],
"disclaimer": "Rule-based specification check for decision support. …"
}