Skip to content

Put Consolidation Config

PUT /knowledge-bases/{kb_id}/consolidation

Replace 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.

NameInTypeNotes
kb_idpathstring (uuid)required—
FieldTypeNotes
schema_versionintegeroptionalDefault 1. min 1
enabledbooleanoptionalDefault false.
interval_secondsintegeroptionalDefault 86400. min 60 max 31536000
model_refstring | nulloptional—
stagesobjectoptional—
promote_dry_runbooleanoptionalDefault true.
thresholdsConsolidationThresholdsoptional—
limitsConsolidationLimitsoptional—
StatusDescriptionBody
200Successful ResponseConsolidationConfig
422Validation ErrorHTTPValidationError

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.

Terminal window
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
}
}'
FieldTypeNotes
schema_versionintegeroptionalDefault 1. min 1
enabledbooleanoptionalDefault false.
interval_secondsintegeroptionalDefault 86400. min 60 max 31536000
model_refstring | nulloptional—
stagesobjectoptional—
promote_dry_runbooleanoptionalDefault true.
thresholdsConsolidationThresholdsoptional—
limitsConsolidationLimitsoptional—