Create an organization rule
Creates a new policy rule at the organization level. Organization rules apply across all projects and cannot be assigned to specific agents. Requires admin role. Available on OneCLI Cloud and self-hosted Enterprise.
Authorizations
API key obtained from the dashboard or GET /user/api-key
Body
1 - 255block, rate_limit, manual_approval, allow GET, POST, PUT, PATCH, DELETE x >= 1minute, hour, day Response
Rule created
A policy rule. Custom (user-authored) rules carry their endpoint fields (hostPattern/pathPattern/method); app-permission rules (metadata.source: app_permission) omit them and are identified by metadata.provider + metadata.toolId.
Custom rules only; absent on app-permission rules.
Custom rules only; absent on app-permission rules.
Custom rules only; absent on app-permission rules.
GET, POST, PUT, PATCH, DELETE, null block, rate_limit, manual_approval, allow minute, hour, day, null Project lists include inherited organization rules; use this to tell them apart.
project, organization Set on rules generated by app permissions (source: app_permission, plus provider and toolId). Null for custom rules.