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.
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"
}
}
]
}Changes
Changed in 11 of the 135 revisions of this API.9316
- ●
added the new
publish_failedenum value to theresults/items/run/lifecycle/status/oneOf[RunStatusFailed]/reasonresponse property for the response status200response-property-enum-value-added
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/inference_time_msbecame required for the status200response-property-became-required
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/tool_time_msbecame required for the status200response-property-became-required
- ●
- ▲
the response property
results/items/run/timing/oneOf[RunTiming]/inference_time_msbecame optional for the status200response-property-became-optional
- ▲
the response property
results/items/run/timing/oneOf[RunTiming]/tool_time_msbecame optional for the status200response-property-became-optional
- ○
removed the
publish_failedenum value from theresults/items/run/lifecycle/status/oneOf[RunStatusFailed]/reasonresponse property for the response status200response-property-enum-value-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
added the new
publish_failedenum value to theresults/items/run/lifecycle/status/oneOf[RunStatusFailed]/reasonresponse property for the response status200response-property-enum-value-added
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/inference_time_msbecame required for the status200response-property-became-required
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/tool_time_msbecame required for the status200response-property-became-required
- ●
- ▲
the response property
results/items/run/timing/oneOf[RunTiming]/inference_time_msbecame optional for the status200response-property-became-optional
- ▲
the response property
results/items/run/timing/oneOf[RunTiming]/tool_time_msbecame optional for the status200response-property-became-optional
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/inference_time_msbecame required for the status200response-property-became-required
- ○
the response property
results/items/run/timing/oneOf[RunTiming]/tool_time_msbecame required for the status200response-property-became-required
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
removed the
publish_failedenum value from theresults/items/run/lifecycle/status/oneOf[RunStatusFailed]/reasonresponse property for the response status200response-property-enum-value-removed
- ○
- ●
added the new
publish_failedenum value to theresults/items/run/lifecycle/status/oneOf[RunStatusFailed]/reasonresponse property for the response status200response-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
added
PrincipalUserPrincipalWorkerPrincipalWebhookPrincipalSlackPrincipalAgentPrincipalSystemto theresults/items/run/created_byresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
added discriminator to
results/items/run/created_byresponse property for the response status200response-property-discriminator-added
- ○
removed
Principalsubschema #2from theresults/items/run/created_byresponse propertyoneOflist for the response status200response-property-one-of-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the required property
results/items/run/sandbox/oneOf[RunSandbox]/imagefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
results/items/run/sandbox/oneOf[RunSandbox]/providerfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
results/items/run/sandbox/oneOf[RunSandbox]/runtimefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
results/items/run/sandbox/oneOf[RunSandbox]/snapshotfrom the response with the200statusresponse-required-property-removed
- ○
added the optional property
results/items/run/sandbox/oneOf[RunSandbox]/failureto the response with the200statusresponse-optional-property-added
- ○
added the optional property
results/items/run/sandbox/oneOf[RunSandbox]/instanceto the response with the200statusresponse-optional-property-added
- ○
added the required property
results/items/run/sandbox/oneOf[RunSandbox]/kindto the response with the200statusresponse-required-property-added
- ○
added the required property
results/items/run/sandbox/oneOf[RunSandbox]/planto the response with the200statusresponse-required-property-added
- ▲
- ○
added the optional property
results/items/run/automation/oneOf[AutomationRef]/trigger_idto the response with the200statusresponse-optional-property-added
- ○