Flip a policy from audit to enforcing
flip_to_enforcingPromote a MagicSword policy from audit to enforcing mode through Portal confirmation: get readiness, blockers, endpoint count, and a one-time token, then commit with it.
Instructions
Promotes a MagicSword policy from audit to enforcing mode through the Portal server confirmation flow. First call without confirmation_token to get readiness, blockers, endpoint count, and a one-time token. Show the preview to the human. Second call with confirmation_token to commit. Requires policies:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | Yes | Policy UUID to flip | |
| confirmation_token | No | Token returned by the preview call. Passing this commits enforcement. | |
| acknowledge_blockers | No | Set true only when the human explicitly accepts preview blockers. Used on the preview call. |