Skip to main content
PATCH
Update 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
boolean
name
string
Maximum string length: 80
dataset
string
conditions
object[]
Maximum array length: 10
mappings
object[]

Response

Updated. The rule as GET by id returns it.

ok
boolean
required
rule
object
required