Update Run
Update run status and result fields (used by agents to report outcomes).
Model Sweep result contract (PRD-016, requires SWEEPS_ENABLED): report which model served the run plus token counts and Badge computes the cost axis for your Hiring Frontier — no SDK, plain curl:
curl -X PATCH "$API/api/v1/runs/$RUN_ID" \
-H "Content-Type: application/json" -b "$COOKIES" \
-d '{
"status": "completed", "success": true,
"model": "claude-haiku-4-5",
"input_tokens": 18234, "output_tokens": 2101,
"unit_cost_override_usd": 0.021
}'
Cost resolution for non-metered runs: known model in the pricing table → computed from tokens; else unit_cost_override_usd (total $ for this run, 0–100) when given; else cost stays null. Any self-report marks the run self_reported — it plots amber on the frontier and can never mint a verified cert. Metered runs (Badge dispatched on a customer key) reject these fields with 409 run_is_metered; while the flag is off they return 400 sweeps_disabled.
Request
- Base URL: https://api.badgeia.com
- URL: https://api.badgeia.com/api/v1/runs/{run_id}
- Auth: none declared
Path parameters
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.