SmartGare
API referenceEndpoints

Change a rule's test case

Replaces the label, situation and expected values of a test case. **Required permission:** `referential.rule:write`

PUT/referential/v1/rules/{ruleId}/tests/{testId}

Replaces the label, situation and expected values of a test case.

Required permission: referential.rule:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RuleTestRequest

Response Body

*/*

curl -X PUT "https://example.com/referential/v1/rules/{ruleId}/tests/{testId}" \  -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"}