Skip to main content
POST
cURL
Delete a Policy by ID. This performs a soft delete — the Metric is no longer evaluated and is archived.
This endpoint is available only for API version 2026-06-01. Send whitecircle-version: 2026-06-01.

Authorizations

Authorization
string
header
required

API Key required. Format: Bearer wc-your-api-key

Headers

whitecircle-version
string
required

API Version

Body

application/json
id
string
required

Response

Success

id
string
required
name
string
required
flagged_content
string
required
content_type
enum<string>
required
Available options:
session,
artifact,
any
Example:

"session"

event_selector_list
object[]
required
role_list
enum<string>[]
required

Role restriction used by the new policy targeting model. Empty role lists mean any role.

Available options:
user,
assistant
applies_to
enum<string>
required
Available options:
input,
output,
any
Example:

"input"

mode
enum<string>
required
Available options:
prod,
shadow
Example:

"prod"

rollout_percentage
integer<int32>
required
Required range: x >= 0
created_at
string<date-time>
required
state
enum<string>
required
Available options:
active,
inactive,
draft
Example:

"active"

country_codes
string[]
required
allowed_content
string | null
severity_level_id
string<uuid> | null