API referenceEndpoints
Run a rule's test cases
Resolves each test case's situation with the engine's own precedence, against the versions in force at the instant given (now by default) or, when candidate rows are sent, against those rows alone, and answers per test whether it passed, the scope that won and the values obtained. **Required permission:** `referential.rule:read`
POST
/referential/v1/rules/{ruleId}/tests/runResolves each test case's situation with the engine's own precedence, against the versions in force at the instant given (now by default) or, when candidate rows are sent, against those rows alone, and answers per test whether it passed, the scope that won and the values obtained.
Required permission: referential.rule:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body?RunRuleTestsRequest
Response Body
*/*
curl -X POST "https://example.com/referential/v1/rules/{ruleId}/tests/run" \ -H "Content-Type: application/json" \ -d '{}'{ "at": "2019-08-24T14:15:22Z", "failed": 0, "passed": 0, "results": [ { "label": "string", "matched_scope": { "subjects": { "property1": "string", "property2": "string" }, "type": "station" }, "obtained": {}, "passed": true, "problems": [ "string" ], "test_id": "string" } ], "rule_id": "string", "source": "string"}