Skip to main content

Update run

Endpoint: PUT /runs/{run_id}

Description

Updates a run you own. All body fields are optional; only provided fields are applied.

Parameters

  • Path: run_id — integer.
  • Bodyapplication/json:
{
"org_id": "integer | null"
}

Error responses

  • 401 — Authentication failed.
  • 404 — Run not found or not accessible.
  • 500 — Server error.

Responses

  • 200 — Updated run object with the same JSON shape as Get run.

Example response (200)

{
"id": 991,
"user": "analyst@acme.com",
"run_type": "Dataset",
"run_source": "API",
"dataset": "Support QA - March",
"data_collection": "Customer Support",
"org_id": 3,
"number_of_metrics": 2,
"result": 83.5,
"threshold": 70,
"model_slug": "gpt-4o",
"alias": "support-march",
"aggregate_results": {
"ans_corr": 86,
"faith": 81
},
"started_at": "2026-04-01T09:12:00Z",
"finished_at": "2026-04-01T09:13:12Z",
"is_gte_threshold": true,
"evaluations": []
}

curl

curl -X PUT "https://api.aegisevals.ai/api/v1/runs/991" \
-H "Authorization: Bearer sk_00000000000000000000000000000000" \
-H "Content-Type: application/json" \
-d '{"org_id":3}'