Skip to main content
POST
Marks the run "completed" and returns the final rating aggregate. Finalize after every result batch has been submitted and before calling the gate - the gate reads whatever ratings are stored, and finalizing pins the run so nothing lands after the verdict. This is the same endpoint as Finalize Run; see that page for the full reference. Finalizing is idempotent, so a retried pipeline step is harmless: a second call returns the same "completed" response, and a "failed" run stays failed (returned as status: "failed", not an error).

Authentication

string
required
Project API key.

Path Parameters

string
required
Run ID.

Response

string
Run ID.
string
"completed" (or "failed" if the run had previously failed).
object
Final aggregate: { averageRating, minRating, maxRating, ratedCount, skippedCount, failedCount }. A nonzero skippedCount in CI usually means the judge could not score (e.g. missing judge provider key) - the gate would then fail with “no rated results”, so check this before gating.

Errors