Skip to main content
PATCH
Update Policy

Authorizations

Authorization
string
header
required

A control-plane management key using the sk-cp- prefix. Inference keys are not accepted by control-plane endpoints.

Path Parameters

policy_id
string<uuid>
required

Policy id

workspace_ref
string
required

Workspace ID or slug

org_id
string
required

Organization ID or slug

Body

application/json
name
string | null

Replacement display name; omit to leave unchanged

Required string length: 1 - 200
enabled
boolean | null

Enable or disable this policy; omit to leave unchanged

definition
PolicyDefinition · object | null

Replace the complete target and inline rules; omit to leave unchanged

Response

Successful Response

data
PolicyOut · object
required