Skip to content
Start here

Policies

List policies
GET/accounts/{account_id}/cws/policies
Get a policy by ID
GET/accounts/{account_id}/cws/policies/{policy_id}
Create a new policy
POST/accounts/{account_id}/cws/policies
Update a policy
PUT/accounts/{account_id}/cws/policies/{policy_id}
Delete a policy
DELETE/accounts/{account_id}/cws/policies/{policy_id}
ModelsExpand Collapse
Policy object { id, created_at, entrypoint, 7 more }
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
entrypoint: string

Non-function rule declared in rego_source. Evaluation uses data.<package_path>..

maxLength255
filter: string

Filter expression that determines whether this policy applies. Maximum 4096 UTF-8 bytes.

maxLength4096
minLength1
name: string

Human-readable name; unique per account

maxLength100
minLength1
package_path: string

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

maxLength1024
rego_source: string

Inline Rego source with a package beginning with “policy.” Maximum 16384 UTF-8 bytes.

maxLength16384
minLength1
tags: map[string]

Tags attached to this policy

updated_at: string
formatdate-time
description: optional string

Optional free-form description.

maxLength1024
PolicyDeleteResponse object { id }
id: string
formatuuid