Open a change set on a rule
Starts one proposed change to the rule's table, as a draft. A rule has at most one open change set; a second is refused with the open one's id. **Required permission:** `referential.rule:write`
/referential/v1/rules/{ruleId}/change-setsStarts one proposed change to the rule's table, as a draft. A rule has at most one open change set; a second is refused with the open one's id.
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" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}List a rule's change sets
Every change set, newest first. **Required permission:** `referential.rule:read`
Get a rule's open change set
The draft, submitted, or approved and not yet applied change set, compared with the table in force. Not found when the rule has none. **Required permission:** `referential.rule:read`