Skip to main content
PATCH
Update a policy rule

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

ruleId
string
required

Body

application/json
name
string
Required string length: 1 - 255
hostPattern
string
Required string length: 1 - 1000
pathPattern
string | null
method
enum<string> | null
Available options:
GET,
POST,
PUT,
PATCH,
DELETE
action
enum<string>
Available options:
block,
rate_limit,
manual_approval,
allow
enabled
boolean
agentId
string | null
rateLimit
integer | null
Required range: 1 <= x <= 1000000
rateLimitWindow
enum<string> | null
Available options:
minute,
hour,
day
conditions
object[] | null
Maximum array length: 10

Response

Rule updated

success
boolean