Add a test case to a rule
Keeps a situation, by context key, with the content values the rule must answer for it. **Required permission:** `referential.rule:write`
/referential/v1/rules/{ruleId}/testsKeeps a situation, by context key, with the content values the rule must answer for it.
Required permission: referential.rule:write
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
curl -X POST "https://example.com/referential/v1/rules/{ruleId}/tests" \ -H "Content-Type: application/json" \ -d '{}'{ "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "expected": {}, "id": "string", "label": "string", "rule_id": "string", "situation": { "property1": "string", "property2": "string" }, "updated_at": "2019-08-24T14:15:22Z", "updated_by": "string"}List a rule's test cases
Every test case written for the rule, oldest first. **Required permission:** `referential.rule:read`
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`