Immutable source snapshot
POST /v1/findings/bulk
Bulk findings. Permissions, parameters, responses and examples.
This address preserves one reviewed source snapshot. Use the current entry point for the selected documentation version.
Read pinned handler: apps/api/kodesec_api/main.py:5779
Bulk findings
Bulk findings through POST /v1/findings/bulk. The parameters and declared response shapes below come from this exact source snapshot.
Source preview; no stable third-party integration promise. This page makes no request to a local installation.
Authority
Browser operator session only at the middleware boundary. Route-specific ownership and generation checks also apply.
Browser mutations require the exact control Origin and session-bound CSRF header. IDE callers use only their admitted route scope and exact generation.
Parameters and headers
| Name | Location | Contract |
|---|---|---|
X-CSRF-Token | header Conditional / optional | Required for browser mutations with the exact control Origin. Not an IDE capability. Schema |
Idempotency-Key | header Conditional / optional | Required for command submission; for bulk findings, only the triage action. Stable key for the same exact command, beginning with a letter or digit. Reuse with different content conflicts. Schema |
Request body
JSON body · required · FindingBulkAction
| Field | Type | Presence |
|---|---|---|
action | string | Required |
advisor_provider_pin | AdvisorTriageProviderPin | null | Optional |
expected_revisions | object | null | Optional |
finding_ids | array | Required |
model | string | null | Optional |
reason | string | null | Optional |
Complete declared request schema
{
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"triage",
"delete",
"open",
"needs_review",
"gate_exempt",
"accepted_risk",
"ignore",
"false_positive",
"fixed"
],
"title": "Action",
"type": "string"
},
"advisor_provider_pin": {
"anyOf": [
{
"$ref": "#/components/schemas/AdvisorTriageProviderPin"
},
{
"type": "null"
}
]
},
"expected_revisions": {
"anyOf": [
{
"additionalProperties": {
"type": "integer"
},
"maxProperties": 200,
"type": "object"
},
{
"type": "null"
}
],
"title": "Expected Revisions"
},
"finding_ids": {
"items": {
"type": "integer"
},
"maxItems": 200,
"minItems": 1,
"title": "Finding Ids",
"type": "array"
},
"model": {
"anyOf": [
{
"maxLength": 120,
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"reason": {
"anyOf": [
{
"maxLength": 500,
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
}
},
"required": [
"finding_ids",
"action"
],
"title": "FindingBulkAction",
"type": "object"
}Responses
| Status | Meaning and declared shape |
|---|---|
200 | Successful Response application/json · object |
202 | Triage action accepted; other bulk actions retain 200. application/json · object |
400 | Exact host, malformed request or URL credential refusal application/json · object |
401 | Missing or invalid membership application/json · object |
403 | Exact origin, CSRF or route authority refusal application/json · object |
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 |
429 | Authentication rate or connection limit application/json · object |
503 | Check readiness and the recorded job state. A healthy control plane does not prove scanner readiness. 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.
30 source error observations
| Status | Source detail | Recovery |
|---|---|---|
| 404 ↗ | Dynamic detail; inspect source | Refresh the collection and verify the resource identity before retrying. |
| 404 ↗ | one or more finding scans no longer exist | Refresh the collection and verify the resource identity before retrying. |
| 404 ↗ | Dynamic detail; inspect source | Refresh the collection and verify the resource identity before retrying. |
| 422 ↗ | expected_revisions must contain exactly one revision for every selected finding | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 422 ↗ | bulk advisor triage requires findings from one scan | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 409 ↗ | bulk advisor triage accepts active findings only | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | advisor triage requires a terminal scan with persisted findings | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 422 ↗ | Dynamic detail; inspect source | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 422 ↗ | Dynamic detail; inspect source | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 422 ↗ | Dynamic detail; inspect source | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | the selected Advisor provider no longer exists | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 409 ↗ | Dynamic detail; inspect source | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 503 ↗ | Dynamic detail; inspect source | Check readiness and the recorded job state. A healthy control plane does not prove scanner readiness. |
| 503 ↗ | Dynamic detail; inspect source | Check readiness and the recorded job state. A healthy control plane does not prove scanner readiness. |
| 409 ↗ | Idempotency-Key is already bound to a different command | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 422 ↗ | command payload must be an object | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
| 401 ↗ | authentication required | Reconcile the exact browser or IDE membership through the normal owner workflow. |
| 422 ↗ | Idempotency-Key must contain 8-160 ASCII letters, digits, '.', '_', ':', or '-' | Correct the field or semantic validation error. Input values are omitted from control validation errors. |
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
{
"action": "triage",
"finding_ids": [
1
]
}Response 200 JSON
{}Response 202 JSON
{}All referenced models remain in its components section. Browse control model definitions.