Skip to main content
POST
Create ruleset

Authorizations

Authorization
string
header
required

HS256-signed JWT bearer token, obtained via the OAuth2 client-credentials grant (see Authentication).

Body

application/json

Ruleset attributes

context
string
required

Ruleset context key used for routing

Example:

"checkout"

created_by
string
Example:

"ops@example.com"

description
string
Example:

"Standard checkout rules"

rules
RuleInput · object[]

Initial rule definitions (can also be added via PATCH while DRAFT)

Response

Created ruleset

id
string<uuid>
activated_at
string<date-time> | null
context
string
Example:

"checkout"

created_at
string<date-time>
created_by
string | null
description
string | null
rules
Rule · object[]

Rule definitions evaluated in array order

status
enum<string>
Available options:
DRAFT,
ACTIVE,
INACTIVE
version
integer
Example:

1