Publish policy
POST/api/policies/:policy_id/publish
Publish in one call, in one transaction.
- ACTIVE/DISABLED with a pending draft: apply it (content -> version + 1 and a policy_versions row, like PATCH;
enabled-> ACTIVE/DISABLED like the toggle), clear the draft, ledgerpolicy.published. - DRAFT / VALIDATED / PENDING_APPROVAL: walk the legal chain to ACTIVE (a
policy.transitionedentry per hop, then onepolicy.published); the version stays what it is (a rule saved as a draft is v1). - anything else: 409.
Request
Responses
- 200
- 401
- 403
- 422
Successful Response
The token is missing, invalid or expired. Refresh it, or sign in again.
Your role does not allow this. The detail names the missing permission or role.
Validation Error