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`
/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/approvePuts 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
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}/approve" \ -H "Content-Type: application/json" \ -d '{ "immediate": true }'{ "applied_at": "2019-08-24T14:15:22Z", "authors": [ "string" ], "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "effective_at": "2019-08-24T14:15:22Z", "id": "string", "immediate": true, "reason": "string", "rows": [ { "action": "put", "change": "added", "current": { "content": {}, "version_id": "string", "version_number": 0 }, "proposed": { "content": {}, "version_id": "string", "version_number": 0 }, "scope": { "subjects": { "property1": "string", "property2": "string" }, "type": "station" } } ], "rule_id": "string", "state": "draft", "steps": [ { "action": "created", "actor": "string", "comment": "string", "occurred_at": "2019-08-24T14:15:22Z", "scope_key": "string" } ], "updated_at": "2019-08-24T14:15:22Z"}Get a change set
While open, its rows are the whole table compared with the one in force: unchanged, changed (with the row in force and the proposed one), removed and added. Once applied or withdrawn, only the rows it touched. **Required permission:** `referential.rule:read`
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`