Cubewire LogoDeveloper
Support
Onboarding
Cubewire Developer Hub Logo
SOC 2 Compliant

Developer documentation and tools for Cubewire's digital wallet infrastructure. Built for developers, by developers.

developers@cubewire.com
TwitterGitHubDiscord

Developer Tools

  • API Documentation
  • API Reference

Resources

  • Documentation

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
© 2026 Cubewire. All rights reserved.
Developer Documentation Portal•Built with ♥ for developers
  1. Cubewire Wallet
  2. Manage Policies
  3. Restore archived policy

Restore archived policy

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.

Path Parameters

ParameterTypeRequiredDescription
logicalIdstring (UUID)YesThe logical ID shared across all versions of the policy

Response Fields

Returns the restored policy object (highest version).

FieldTypeDescription
idstringPolicy version identifier
logicalIdstringStable identifier shared across all versions
versionnumberRestored version number
isLatestbooleanWhether this is the latest version
namestringPolicy name
descriptionstringPolicy description
statusstringRestored to INACTIVE (one of DRAFT, PENDING_APPROVAL, ACTIVE, INACTIVE, ARCHIVED)
conditionLogicstringALL or ANY
enforcementModestringSTRICT, ADVISORY, or LOG_ONLY
typestringPolicy type
prioritynumberEvaluation priority
organizationIdstringOwning organization
conditionsarrayPolicy conditions
actionsarrayPolicy actions
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast modification timestamp (ISO 8601)
createdBystringUUID of the user who created the policy
updatedBystringUUID of the user who last updated the policy

Use Cases

  • Recover an accidentally deleted policy
  • Re-enable a previously retired policy configuration
  • Restore a policy from audit/compliance review

Required Permission

policies:update

On this page

  • Path Parameters
  • Response Fields
  • Use Cases
  • Required Permission
  1. Cubewire Wallet
  2. Manage Policies
  3. Restore archived policy

Restore archived policy

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.

Path Parameters

ParameterTypeRequiredDescription
logicalIdstring (UUID)YesThe logical ID shared across all versions of the policy

Response Fields

Returns the restored policy object (highest version).

FieldTypeDescription
idstringPolicy version identifier
logicalIdstringStable identifier shared across all versions
versionnumberRestored version number
isLatestbooleanWhether this is the latest version
namestringPolicy name
descriptionstringPolicy description
statusstringRestored to INACTIVE (one of DRAFT, PENDING_APPROVAL, ACTIVE, INACTIVE, ARCHIVED)
conditionLogicstringALL or ANY
enforcementModestringSTRICT, ADVISORY, or LOG_ONLY
typestringPolicy type
prioritynumberEvaluation priority
organizationIdstringOwning organization
conditionsarrayPolicy conditions
actionsarrayPolicy actions
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast modification timestamp (ISO 8601)
createdBystringUUID of the user who created the policy
updatedBystringUUID of the user who last updated the policy

Use Cases

  • Recover an accidentally deleted policy
  • Re-enable a previously retired policy configuration
  • Restore a policy from audit/compliance review

Required Permission

policies:update

On this page

  • Path Parameters
  • Response Fields
  • Use Cases
  • Required Permission