Restore an archived (soft-deleted) policy by its logical ID. The highest version is restored to INACTIVE status, and all versions have their deletedAt/deletedBy fields cleared.
Note: The policy must be explicitly activated after restore to take effect. It will not automatically resume enforcing rules.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicalId | string (UUID) | Yes | The logical ID shared across all versions of the policy |
Returns the restored policy object (highest version).
| Field | Type | Description |
|---|---|---|
id | string | Policy version identifier |
logicalId | string | Stable identifier shared across all versions |
version | number | Restored version number |
isLatest | boolean | Whether this is the latest version |
name | string | Policy name |
description | string | Policy description |
status | string | Restored to INACTIVE (one of DRAFT, PENDING_APPROVAL, ACTIVE, INACTIVE, ARCHIVED) |
conditionLogic | string | ALL or ANY |
enforcementMode | string | STRICT, ADVISORY, or LOG_ONLY |
type | string | Policy type |
priority | number | Evaluation priority |
organizationId | string | Owning organization |
conditions | array | Policy conditions |
actions | array | Policy actions |
createdAt | string | Creation timestamp (ISO 8601) |
updatedAt | string | Last modification timestamp (ISO 8601) |
createdBy | string | UUID of the user who created the policy |
updatedBy | string | UUID of the user who last updated the policy |
policies:update
Restore an archived (soft-deleted) policy by its logical ID. The highest version is restored to INACTIVE status, and all versions have their deletedAt/deletedBy fields cleared.
Note: The policy must be explicitly activated after restore to take effect. It will not automatically resume enforcing rules.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicalId | string (UUID) | Yes | The logical ID shared across all versions of the policy |
Returns the restored policy object (highest version).
| Field | Type | Description |
|---|---|---|
id | string | Policy version identifier |
logicalId | string | Stable identifier shared across all versions |
version | number | Restored version number |
isLatest | boolean | Whether this is the latest version |
name | string | Policy name |
description | string | Policy description |
status | string | Restored to INACTIVE (one of DRAFT, PENDING_APPROVAL, ACTIVE, INACTIVE, ARCHIVED) |
conditionLogic | string | ALL or ANY |
enforcementMode | string | STRICT, ADVISORY, or LOG_ONLY |
type | string | Policy type |
priority | number | Evaluation priority |
organizationId | string | Owning organization |
conditions | array | Policy conditions |
actions | array | Policy actions |
createdAt | string | Creation timestamp (ISO 8601) |
updatedAt | string | Last modification timestamp (ISO 8601) |
createdBy | string | UUID of the user who created the policy |
updatedBy | string | UUID of the user who last updated the policy |
policies:update