Update Threat Model
update_threat_modelRename a threat model, set or clear its parent in the composition tree, or record where its description came from. Applies changes in order and reports each applied update.
Instructions
Change a threat model's metadata: its name, its parent, where its description came from. Mutating; pass only what changes.
name(1-120 chars) renames it; no new version. Titles are unique within a workspace, case-insensitive (409 on a clash).parent_idwires it under a parent on the recursive composition tree, so it inherits the parent's topology and objectives;clear_parent=Truemakes it a tree root. Cycles (409) and chains past the platform's maximum depth (400) are refused. No new version.provenance_kind(code,ticket,document,manual,mixed) records where the description came from, with the otherprovenance_*values.codewithprovenance_commit_shameans the code is authoritative and the model follows it (reconcile_modelmeasures it against the code); any other kind means the description is intent and the code is measured against it. Bumps the model version.
Changes apply in that order. Returns {model_id, name?, parent?, provenance?}, one entry per change applied. A failure raises and
names the changes already applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| model_id | Yes | ||
| parent_id | No | ||
| clear_parent | No | ||
| provenance_ref | No | ||
| server_version | Yes | ||
| provenance_kind | No | ||
| provenance_repo_url | No | ||
| provenance_commit_sha | No | ||
| provenance_source_ref | No | ||
| provenance_source_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||