Edit Behavioural Element
edit_behavioural_elementReplace, or add, one element of a model's behavioural model. Mutating; creates a model version (none when the edit changes nothing).
Instructions
Replace, or add, one element of a model's behavioural model. Mutating; creates a model version (none when the edit changes nothing).
The element is kept as a person wrote it, so a later extraction keeps it.
It changes the model's ir_hash, which voids a confirmation: confirm
again with confirm_behavioural_model. The result must still be a
valid model (422 otherwise), and a build holding the model refuses it
(409).
A program's edit is a judgment. Unless the workspace's delegation policy
admits it, it is refused with 403 and an escalation_id and parked for
a person. Do not retry: report the escalation_id and poll
list_proposals.
Returns the behavioural model as it now stands, with changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | JSON object, the whole element including its ``id``; it replaces the element of that id, or adds one. | |
| model_id | Yes | ID of the threat model. | |
| collection | Yes | The collection of ``get_behavioural_model``'s ``ir`` the element belongs to. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||