API referenceEndpoints
Undo the edit of a row in a change set
Forgets what the set did to a scope, so the row reads as it is in force. **Required permission:** `referential.rule:write`
POST
/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/undoForgets what the set did to a scope, so the row reads as it is in force.
Required permission: referential.rule:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*RuleChangeSetScopeRequest
Response Body
*/*
curl -X POST "https://example.com/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/undo" \ -H "Content-Type: application/json" \ -d '{ "subjects": { "property1": "string", "property2": "string" } }'{ "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"}Send a change set for approval
Refused while any of the rule's tests fails against the table the set would leave in force, naming the failing tests. **Required permission:** `referential.rule:write`
Withdraw a change set
Withdraws a draft, a submitted set, or an approved one whose instant has not come. **Required permission:** `referential.rule:write`