Test Rule
Run a rule in test mode without publishing. Use this to validate configuration and inputs. The request body can include test parameters and an optional version (e.g. draft).
Use the API reference below to try the endpoint.
Run a rule in test mode without publishing.
Dev API key (Nected-API-Key header)
The rule's entity ID
Branch name (optional)
Request body for test endpoint
Version to test (e.g. draft)
OK (illustrative execution result; exact data shape may vary by rule type)
Standard API response wrapper
Response payload: rule object, array of rules (list), version rows, or execution result — shape varies by endpoint
Bad Request
Internal Server Error
POST /dev/v1/rule/{entity-id}/test HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"checksum": "c64bbd3e818797b7537c1b4bbf47ef7e",
"params": {
"Age": 20
},
"version": "draft"
}{
"code": "success",
"message": "Success.",
"data": {
"result": {
"key_name_1": "True Condition"
},
"matched": true,
"outputs": {}
}
}Where to get the Checksum?
The test endpoint requires the current checksum of the rule. If the checksum you send does not match the rule’s latest checksum on the server, the API returns a checksum mismatch error and the test does not run.
Recommended flow
Call Get rule by id (
GET /dev/v1/rule/{entity-id}) for the rule you want to test.From the response, copy
data.checksum(the exact string returned by the API).Paste that value into your test request body as
checksum, together withparams(and optionalversion, e.g."draft").
You can also use a checksum from a recent Create rule (201) or Update rule (200) response—only if no other change has been applied since (any save/update changes the checksum). When in doubt, Get rule by id again before testing.
Last updated