Internal implementation reference
POST /runs/{run_id}/result/ack
Acknowledge run result. Permissions, parameters, responses and examples.
Private service protocols are unsupported for external integration. Their schemas describe source declarations; they are not public service endpoints.
Read pinned handler: services/scanner/kodesec_scanner/main.py:1576
Acknowledge run result
Acknowledge run result through POST /runs/{run_id}/result/ack. The parameters and declared response shapes below come from this exact source snapshot.
Internal protocol; unsupported for external integration. This page makes no request to a local installation.
Authority
Private service protocol. No public or third-party integration authority.
Parameters and headers
| Name | Location | Contract |
|---|---|---|
run_id | path Required | string Schema |
Request body
JSON body · required · RunResultAckRequest
| Field | Type | Presence |
|---|---|---|
request_digest | string | Required |
result_digest | string | Required |
Complete declared request schema
{
"additionalProperties": false,
"properties": {
"request_digest": {
"pattern": "^[0-9a-f]{64}$",
"title": "Request Digest",
"type": "string"
},
"result_digest": {
"pattern": "^[0-9a-f]{64}$",
"title": "Result Digest",
"type": "string"
}
},
"required": [
"request_digest",
"result_digest"
],
"title": "RunResultAckRequest",
"type": "object"
}Responses
| Status | Meaning and declared shape |
|---|---|
200 | Successful Response application/json · RunResultAckResponse |
404 | Refresh the collection and verify the resource identity before retrying. See source-linked error catalog. |
409 | Refresh current revision and identity. A conflicting command must not be blindly repeated. See source-linked error catalog. |
422 | Validation Error application/json · HTTPValidationError |
500 | Keep the operation identity and collect bounded, reviewed diagnostics. See source-linked error catalog. |
An empty or broad schema preserves the source contract. It is not a promise of an empty response.
Source-linked errors
Literal HTTP errors in this handler and same-file helper call graph, plus control middleware. Dynamic and cross-module failures may add other errors; source links are authoritative.
4 source error observations
| Status | Source detail | Recovery |
|---|---|---|
| 404 ↗ | scanner run was not found or its recovery window expired | Refresh the collection and verify the resource identity before retrying. |
| 409 ↗ | {"code":"run_id_conflict","message":"run identity or result binding does not match"} | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | scanner run has no completed result to acknowledge | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 500 ↗ | scanner result could not be discarded safely | Keep the operation identity and collect bounded, reviewed diagnostics. |
Synthetic examples
These examples validate declared JSON shapes and formats. They contain no real installation data and do not prove runtime admission, cross-field validation, authority or successful work.
Request JSON
{
"request_digest": "0000000000000000000000000000000000000000000000000000000000000000",
"result_digest": "0000000000000000000000000000000000000000000000000000000000000000"
}Response 200 JSON
{
"request_digest": "0000000000000000000000000000000000000000000000000000000000000000",
"result_digest": "0000000000000000000000000000000000000000000000000000000000000000",
"run_id": "00000000-0000-4000-8000-000000000001"
}All referenced models remain in its components section. Browse control model definitions.