Add rule to draft policy
Adds a new rule to a draft policy. Rules can only be added/modified/removed on drafts. To change the active policy, submit a new draft and activate it. The Idempotency-Key header is required.
Authorizations
Headers
API version (defaults to the latest supported version if omitted).
v1 Unique key (1-255 printable ASCII chars) used to safely retry write operations. Same key + body returns the cached response; same key + different body returns 409.
1 - 255Path Parameters
Policy ID
Body
Action taken when the rule matches: allow, block, require_approval, alert, or delay.
allow, block, require_approval, alert, delay "require_approval"
Human-readable name of the rule (2–255 characters).
2 - 255"Block large transfers"
Type-specific configuration for the action; shape depends on action_type.
Conditions that must all match for the rule to apply; optional on a draft, required when activating.
Optional free-text summary of the rule's intent.
1000Position of the rule in the policy's first-match-wins evaluation order; appended in creation order when omitted.
Response
Created
Type-specific configuration for the action; shape depends on action_type.
Action taken when the rule matches: allow, block, require_approval, alert, or delay.
"require_approval"
Conditions that must all match for the rule to apply.
Timestamp when the rule was created.
"2026-05-16T10:30:00Z"
Optional free-text summary of the rule's intent.
Unique identifier of the rule.
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
Human-readable name of the rule.
"Block large transfers"
Object type discriminator; always "rule".
"rule"
Position of the rule in the policy's first-match-wins evaluation order.
1
Evaluation priority of the rule.
50
Timestamp when the rule was last updated.
"2026-05-16T10:30:00Z"