Skip to main content
POST
Publish the organization's rules
Kept for compatibility. Every rule write already publishes, so this call re-snapshots an identical rule set and returns the current generation. New integrations can skip it. Related guide: Rules: control what agents can do. Compatibility for older clients. Every write already publishes; this re-snapshots an identical rule set and answers the current generation.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Response

200 - application/json

The generation

generation
integer
ruleCount
integer