Skip to content
Start here

Rego Modules

List Rego modules
GET/accounts/{account_id}/cws/rego-modules
Get a Rego module by ID
GET/accounts/{account_id}/cws/rego-modules/{rego_module_id}
Create a new Rego module
POST/accounts/{account_id}/cws/rego-modules
Update a Rego module
PUT/accounts/{account_id}/cws/rego-modules/{rego_module_id}
Delete a Rego module
DELETE/accounts/{account_id}/cws/rego-modules/{rego_module_id}
ModelsExpand Collapse
RegoModule object { id, created_at, name, 3 more }
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
name: string

Human-readable name; unique per account

maxLength100
minLength1
package_path: string

Dotted path derived from rego_source. Begins with lib. and is unique per account.

maxLength1024
rego_source: string

Library Rego source with a package beginning with “lib.” Maximum 16384 UTF-8 bytes.

maxLength16384
minLength1
updated_at: string
formatdate-time
RegoModuleDeleteResponse object { id }
id: string
formatuuid