Skip to main content

Apply or discard the removals of a held run

POST 

/v1/knowledge_bases/:kb_id/sources/:source_id/runs/:run_id:resolve

Only for a run in held (otherwise 409 invalid_source_state). apply_deletions deletes the held pages' documents; discard_deletions keeps them indexed, and the next run evaluates them again. A decision is recorded once: the run keeps status: held and gets deletion.decision and deletion.decided_at; sending the same decision again returns 200, a different one is 409 invalid_source_state. Only the hold is cleared: a held source becomes active, a paused or disabled_by_admin source keeps its status, a deleting source refuses (409). The pages concerned are the run's pending_removal pages when it ended; pages you deleted meanwhile are skipped.

Access: API key scope knowledge:write; portal users: organization admins and owners; the knowledge base in the path must be on the key's access list.

Request​

Responses​

Resolved.