v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01251238661.6 KB
v1
protected
policies

Create Policy Rule

Create a policy rule in the current workspace.

post/v1/policies

Request body

conditionstring nullable
effect'allow' | 'deny' | 'cap' | 'approval' | 'safety' | 'egress' required

What a rule does when it applies.

enabledboolean
paramsobject
priorityinteger
subject_idstring required
subject_type'workspace' | 'agent' | 'user' | 'group' required

The kind of subject a rule binds to.

targetstring required

Response

Successful Response

conditionstring nullable
effect'allow' | 'deny' | 'cap' | 'approval' | 'safety' | 'egress' required

What a rule does when it applies.

enabledboolean required
idstring required
paramsobject required
priorityinteger required
subject_idstring required
subject_type'workspace' | 'agent' | 'user' | 'group' required

The kind of subject a rule binds to.

targetstring required