Openi DeveloperDeveloper

Preview JSONata evaluation with sample records

Compiles and evaluates the expression against the supplied left/right records using a per-call sandbox, then computes a decision against the supplied thresholds. Always returns 200; failure is reflected in `ok=false` with `error`.

POST
/v1/rule-sets/preview-jsonata

Authorization

ApiKeyAuth
x-api-key<token>

Tenant API key

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

expr*string
Length1 <= length <= 65536
left?
Default{}
right?
Default{}
params?

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/rule-sets/preview-jsonata" \  -H "Content-Type: application/json" \  -d '{    "expr": "string"  }'
{  "ok": true,  "score": 0,  "decision": "MATCH",  "error": "string"}