Put Consolidation Config
PUT /knowledge-bases/{kb_id}/consolidationReplace it. §9.1’s document is replaced whole, never merged field by field.
Whole, because the stage table and the threshold band are not independent settings: a
merge that accepted {"stages": {"relate": true}} would turn on a stage whose
relate_low/relate_high band the same request never mentioned, and the pass would
run with half of one intention.
Parameters
Section titled “Parameters”| Name | In | Type | Notes | |
|---|---|---|---|---|
kb_id | path | string (uuid) | required | — |
Request body — ConsolidationConfig
Section titled “Request body — ConsolidationConfig”| Field | Type | Notes | |
|---|---|---|---|
schema_version | integer | optional | Default 1. min 1 |
enabled | boolean | optional | Default false. |
interval_seconds | integer | optional | Default 86400. min 60 max 31536000 |
model_ref | string | null | optional | — |
stages | object | optional | — |
promote_dry_run | boolean | optional | Default true. |
thresholds | ConsolidationThresholds | optional | — |
limits | ConsolidationLimits | optional | — |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | ConsolidationConfig |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X PUT https://your-deployment.example.com/knowledge-bases/{kb_id}/consolidation \ -H "Authorization: Bearer $COBRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "schema_version": 0, "enabled": true, "interval_seconds": 0, "stages": {}, "promote_dry_run": true, "thresholds": { "dedupe_similarity": 0, "relate_low": 0, "relate_high": 0, "curate_confidence": 0, "decay_age_days": 0, "synthesize_support": 0, "elevate_subjects": 0 }, "limits": { "max_candidates": 0, "max_workers": 0, "fanout_threshold": 0 } }'Response — ConsolidationConfig
Section titled “Response — ConsolidationConfig”| Field | Type | Notes | |
|---|---|---|---|
schema_version | integer | optional | Default 1. min 1 |
enabled | boolean | optional | Default false. |
interval_seconds | integer | optional | Default 86400. min 60 max 31536000 |
model_ref | string | null | optional | — |
stages | object | optional | — |
promote_dry_run | boolean | optional | Default true. |
thresholds | ConsolidationThresholds | optional | — |
limits | ConsolidationLimits | optional | — |