Runs
Archive Runs
Marks up to 250 terminal runs as archived in one fail-soft, non-transactional request. Each run is processed independently and successful items emit the same per-run archive events as POST /api/v1/runs/{id}/archive. A valid batch returns 200 even when some items fail; inspect results and summary for per-run outcomes. Invalid request bodies are rejected before mutating any run.
post/api/v1/runs/archive
Request body
Example request
{
"run_ids": [
"01HZX6M29F1CD5YYMHT1F5D7WQ"
]
}Response
Batch processed
Example response
{
"results": [
{
"run": {
"repository": {
"name": "fabro-sh/fabro",
"origin_url": "https://github.com/fabro-sh/fabro.git"
},
"lifecycle": {
"error": {
"message": "Stage 'apply-changes' exceeded maximum retries."
}
},
"timing": {
"wall_time_ms": 420000,
"inference_time_ms": 120000,
"tool_time_ms": 60000,
"active_time_ms": 180000
},
"diff": {
"files_changed": 42,
"additions": 567,
"deletions": 234
},
"pull_request": {
"owner": "fabro-sh",
"repo": "fabro",
"number": 123,
"html_url": "https://github.com/fabro-sh/fabro/pull/123"
},
"current_question": {
"text": "Accept or push for another round?"
}
},
"error": {
"status": "404",
"title": "Not Found",
"detail": "Run not found.",
"code": "access_token_expired"
}
}
]
}