Skip to main content

Replace policies for one capability

PUT 

/v1/admin/clients/:slug/policies/:capabilityKey

Declarative replacement of the entire policy set for (client, capability). The body is the complete desired set; anything not in the body is closed.

Closes every open row for the pair and inserts the new set inside one atomic transaction — the platform never observes an empty target list during the swap.

Validates Gate-2 fact coverage: every admissible (factKey, value) declared by the capability catalog must be reachable either via an entry that pins that value or via the default entry (zero facts). Failure rejects the upload with CRT022001 and the uncovered (factKey, value) enumerated.

Request

Responses

Policies replaced successfully