Skip to main content
PATCH
Enable or disable a rule

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

pid
string
required

Project id (UUID) belonging to the caller workspace.

id
string
required

Rule id.

Body

application/json

enabled is the only mutable field; everything else is ignored.

enabled
boolean
required

Response

Updated.

ok
boolean
required