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
- 200
- 400
- 401
- 404
- 422
- 500
- 503
Policies replaced successfully
Schema validation failed (GEN000000) or unknown capability key (CRT000002)
Missing or invalid authentication token (GEN001002) or Role unauthorized (GEN001006)
Slug does not resolve to a known client (CRT004004).
Gate-2 validation failure — duplicate fact-set, inadmissible value, or uncovered admissible value.
Internal server error (GEN100000)
Connector-routing datastore temporarily unavailable (CRT103002)