Skip to main content
POST
Marks the run "completed" and returns the authoritative rating aggregate, recomputed from every stored result. After finalizing, no more results are accepted (further /results calls return 409), and the run is ready for Analyze Run or the CI gate.
Finalizing is idempotent: calling it again on a completed run returns the same "completed" response. Finalizing a "failed" run returns status: "failed" (with its statistics) rather than flipping it to completed - and rather than an error, so retried finalize calls never crash a pipeline. You can finalize with partial results; use Get Missing Results first to check coverage.

Authentication

string
required
Project API key.

Path Parameters

string
required
Run ID.

Body

No body required.

Response

string
Run ID.
string
"completed", or "failed" if the run had previously failed.
object
Final rating aggregate, recomputed from every stored result: { averageRating, minRating, maxRating, ratedCount, skippedCount, failedCount }. Same shape as Submit ResultsliveStatistics. Available without calling Analyze Run; analysis only adds the LLM-written qualitative report on top.

Errors