set_threat_model_parent
Set or clear a threat model's parent to control inheritance on the composition tree, wiring children under shared-services ancestors or re-rooting after re-org. Enforces cycle and depth limits, then returns the updated model.
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 the platform's
configured maximum 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 | |||