API referenceEndpoints
Return a change set to its authors
Sends a submitted set back to draft with the reviewer's comment. **Required permission:** `referential.rule:write`
POST
/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/returnSends a submitted set back to draft with the reviewer's comment.
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*ReturnRuleChangeSetRequest
Response Body
*/*
curl -X POST "https://example.com/referential/v1/rules/{ruleId}/change-sets/{changeSetId}/return" \ -H "Content-Type: application/json" \ -d '{ "comment": "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"}Remove a row in a change set
Marks the row in force for a scope as removed, or drops a row the set added. Records the editor. **Required permission:** `referential.rule:write`
Put a row in a change set
Adds the row for a scope, or changes the content of the row in force for it. Content equal to the row in force undoes the edit. Records the editor. **Required permission:** `referential.rule:write`