Skip to main content
POST
Compile and Save Instruction

Body

application/json
script
string
required

The Watchscript source code to compile and save

Response

Instruction compiled and saved successfully

id
integer

Unique instruction identifier

name
string

Rule name (extracted from Watchscript)

text
string

The original Watchscript source text

description
string

Human-readable description (extracted from Watchscript)

dsl_json
string

Compiled DSL as JSON string (AST representation)

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp