Import Threat Model Archive
import_threat_model_archiveImport a JSON audit archive to create a new threat model in a target workspace. Enables moving or cloning models between workspaces without overwriting existing ones.
Instructions
Import a JSON audit archive (from export_report (scope="model", format="archive"))
into a target workspace.
Mutating: creates a NEW threat model in the target workspace. Requires
write access to that workspace. A fresh model_id is assigned on every
import, so the same envelope can be imported any number of times
without collisions; title collisions in the target workspace
auto-suffix (imported YYYY-MM-DD). Non-destructive — never
overwrites or touches an existing model.
Use to move or clone a model between workspaces or across instances;
the envelope round-trips through export_report (scope="model", format="archive")
first.
The restored model arrives UNVERIFIED. The tier verdicts on its assertions, the attested flag on a verification result, and the facts a verification run reported are the origin's record of what it claimed — kept with the model as that record, and not credited here: a verdict belongs to the run that produced it and the judge that decided it, and this workspace has neither. Verification is earned here by running it against code this workspace can reach, so plan for a restored model to read unverified until it has.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelope | Yes | The full archive dict returned by ``export_report (scope="model", format="archive")``. | |
| workspace_id | Yes | Target workspace to import into. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||