restore_entity
Restore a soft-deleted entity (asset, attacker, component, trust boundary, or assumption) to active status, reversing a prior removal and reviving its associated controls and relationships.
Instructions
Un-soft-delete a single entity of any core type, reversing a prior
remove_entity. Mutating: creates a new model version. Only affects
an entity that is currently soft-deleted.
Dispatches on entity_type. Per-type effect:
asset— revives the asset's tombstoned (asset × attacker) COs with their original IDs, un-orphaning any linked controls.attacker— reinstates the attacker under its original ID, revives the COs tombstoned when it was removed, and un-orphans any controls that were anchored to it.component— reinstates the component under its original ID, restoring its trust-boundary contribution to asset reachability.trust_boundary— reinstates the boundary: the reachability it filtered re-narrows and itssealed/isolation claim is restored, so CO reachability verdicts past it can flip back toward unreachable.assumption— returns the assumption to active status; controls whoseassumption_groupsreferenced it keep their group structure intact. Re-attestation is required before it mitigates COs again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID of the threat model. | |
| entity_id | Yes | ID of the entity to restore. | |
| entity_type | Yes | Which entity to restore — one of ``asset``, ``attacker``, ``component``, ``trust_boundary``, ``assumption``. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||