Internal implementation reference
POST /cache/verification/retry
Retry cache verification. 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:294
Retry cache verification
Retry cache verification through POST /cache/verification/retry. 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
No explicit path, query or header parameters are declared here. The authority boundary still applies.
Request body
JSON body · required · CacheVerificationRetryRequest
| Field | Type | Presence |
|---|---|---|
expected_generation | string | Required |
target | string | Required |
Complete declared request schema
{
"additionalProperties": false,
"properties": {
"expected_generation": {
"pattern": "^[0-9a-f]{64}$",
"title": "Expected Generation",
"type": "string"
},
"target": {
"enum": [
"active",
"previous_good"
],
"title": "Target",
"type": "string"
}
},
"required": [
"target",
"expected_generation"
],
"title": "CacheVerificationRetryRequest",
"type": "object"
}Responses
| Status | Meaning and declared shape |
|---|---|
202 | Successful Response application/json · CacheVerification |
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 |
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.
1 source error observations
| Status | Source detail | Recovery |
|---|---|---|
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
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
{
"expected_generation": "0000000000000000000000000000000000000000000000000000000000000000",
"target": "active"
}Response 202 JSON
{
"generation_id": "0000000000000000000000000000000000000000000000000000000000000000",
"last_activity_at": "2026-01-01T00:00:00Z",
"phase": "queued",
"started_at": "2026-01-01T00:00:00Z",
"state": "verifying",
"target": "active"
}All referenced models remain in its components section. Browse control model definitions.