Submit Control Delta
submit_control_deltaSubmit a draft of a control's delta: edits to the behavioural model, each quoting the control's own text. Mutating; writes no control, set revision or model version.
Instructions
Submit a draft of a control's delta: edits to the behavioural model, each quoting the control's own text. Mutating; writes no control, set revision or model version.
Each edit's quote must be found in the control's text (a quote's
source defaults to the control), and unexpressed lists what the
text commits to that no edit states. An edit that does not check is
refused (422 delta_refused) with its failures.
A submission is a draft, never a declaration: it is checked against the
text by one call billed to the caller (402 when the balance is short), so
it can never make the analysis credit a control alone, and a program's
never replaces a delta a person declared (409 declared_by_person).
A person declares a draft with declare_control_delta.
Returns the delta as get_control_delta does, with check_ran.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | JSON array of edit objects, each with a ``trace`` of quotes from the control's text. | |
| model_id | Yes | ID of the threat model. | |
| control_id | Yes | ID of the control. | |
| unexpressed | No | JSON array of ``{"kind", "quote", "note"}``. | [] |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||