Preview a change set
Answers each of the rule's written situations twice, at the instant given (now by default, never in the past): by the rule in force and by the table the set would leave, side by side. Changes nothing. **Required permission:** `referential.rule:read`
/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/previewAnswers each of the rule's written situations twice, at the instant given (now by default, never in the past): by the rule in force and by the table the set would leave, side by side. Changes nothing.
Required permission: referential.rule:read
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}/change-sets/{changeSetId}/preview" \ -H "Content-Type: application/json" \ -d '{}'{ "approval_refusal": { "code": "string", "fixed_elements": [ "string" ] }, "at": "2019-08-24T14:15:22Z", "change_set_id": "string", "changed": 0, "rule_id": "string", "schedule_conflict": { "code": "string", "scheduled": [ { "effective_at": "2019-08-24T14:15:22Z", "scope": { "subjects": { "property1": "string", "property2": "string" }, "type": "station" }, "version_id": "string", "version_number": 0 } ] }, "situations": [ { "changed": true, "current": { "beaten": [ { "subjects": { "property1": "string", "property2": "string" }, "type": "station" } ], "content": {}, "outcome": "string", "problems": [ "string" ], "scope": { "subjects": { "property1": "string", "property2": "string" }, "type": "station" } }, "label": "string", "proposed": { "beaten": [ { "subjects": { "property1": "string", "property2": "string" }, "type": "station" } ], "content": {}, "outcome": "string", "problems": [ "string" ], "scope": { "subjects": { "property1": "string", "property2": "string" }, "type": "station" } }, "situation": { "property1": "string", "property2": "string" }, "test_id": "string" } ]}Approve a change set
Puts every row in force together, on approval or at a later instant. Refused to anyone who opened or edited the set, and while a test of the rule fails. **Required permission:** `referential.rule:write`
Save the reason of a change set
Keeps the reason of a draft as its authors write it; a blank reason clears it. Sending the set without a reason uses the saved one. Records the writer as an author. **Required permission:** `referential.rule:write`