Approve a run's held deletions
Release the deletions a run’s shrink guard holds.
v2 compatibility notes
POST /api/v2/knowledge/synchronized-sources/approveShrink requires knowledge:manage. A run whose listing lost more of a kind’s items than the shrink threshold holds those deletions for review. The body is {sourceId, runId, expectedRevision} at the guard’s revision. The diff state’s shrinkGuards gives that revision for each recent run’s guard, with or without a diff (a guard in phase review waits for a decision); with a diff on the run, its review gives it too (view.shrink.revision), and the released deletions apply with the diff’s approval. The answer is {sourceId, outcome, revision, deleted, pending, superseded}. A guard that moved, or is not waiting for a decision, answers 409 conflict.
Only a Personal key is admitted, acting as its owner: the owner must hold the permission where the source lives, and is recorded as the decider, with the key named in the audit. An External App or platform key answers 403 forbidden, recorded: a person reviews and decides a source’s held changes.
Send an Idempotency-Key to retry safely. A completed 200 response remains stored for 24 hours and is replayed only while the caller still holds knowledge:read and the source is still in its writable namespaces. Lost access, a missing source or a stored non-200 response yields 409 idempotency_result_unavailable; the request never runs twice.Authorizations
Headers
1–255 printable ASCII characters. A repeat with the same key and request never runs the write again, a 5xx included. It returns the first response (Idempotency-Replayed: true) only when the route's current authorization policy permits disclosure; otherwise 409 idempotency_result_unavailable. Honoured for External App JWTs and platform and MCP keys; an External App's static companion key is not protected.
1 - 255Path Parameters
Body
Response
Approve a run's held deletions
A shrink-guard decision's result: scheduled (the released deletions apply), held_for_review (nothing was released, or a diff on the same run still waits for its own approval), already_applied, or stale (a newer run replaced this evidence). revision is the guard's revision after the decision; deleted, pending and superseded count the held deletions.

