set_threat_model_parent
Set or clear a threat model's parent to define its position in the recursive composition tree, enabling inheritance of topology and control objectives from ancestors.
Instructions
Set (or clear) a model's parent on the recursive composition tree.
The composition substrate (Layer 0) builds an ancestor chain from
each model's parent_id so child models inherit topology, control
objectives, and other entities from their ancestors. Use this tool
when wiring a child model under a platform / system / shared-services
ancestor, or when re-rooting a model after a re-org.
Pass parent_id=None to clear the parent (the model becomes a
tree root). The server rejects cycles (you cannot make a descendant
your parent) and over-deep chains (depth bounded by
MAX_TREE_DEPTH) with HTTP 400. Bumps the model version on
success.
Returns the updated threat model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID of the threat model whose parent is being set. | |
| parent_id | Yes | ID of the new parent model, or ``None`` to clear. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||