import_threat_model_archive
Import a JSON threat model archive into a target workspace, creating a new non-destructive copy. Use to clone or move models between workspaces or instances without overwriting existing data.
Instructions
Import a JSON audit archive (from export_threat_model_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_threat_model_archive
first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelope | Yes | The full archive dict returned by ``export_threat_model_archive``. | |
| workspace_id | Yes | Target workspace to import into. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||