v2
latestOpenAPI 3.1.02026-08-0382170235.8 KBfact-scope
fact-scope
Override a fact's scope_inferred (human correction of Approach D)
Apply a human correction to a fact's scope_inferred value. The LLM-extracted scope (own / third_party / mixed_context / unknown) may be wrong for documents that mix scopes — this endpoint lets the integrator (KB2B) record the human's correction.
Side effects:
- Fact.scope_inferred is overwritten with the request value.
- Fact.scope_confidence is reset to 1.0 (human assertion supersedes LLM uncertainty).
- If rationale is provided, it replaces Fact.scope_reason (truncated to 500 chars).
- Document.scope_summary is recomputed from all facts of the document.
- A FactScopeOverrideRecord is persisted for audit (24h TTL).
Idempotency: idempotency_key is required. Replays within 24h return the original response without re-mutating the fact.
post/pots/{pot_id}/facts/{fact_id}/scope
Path parameters
pot_idstring uuid required
fact_idstring uuid required
Request body
Response
Scope override applied (or idempotency replay)