admin_set_lease_perpetual
Toggle a billing account's lease_perpetual escape hatch to pin all projects to 'active' or resume normal lifecycle. Admin-only; enables inline reactivation for accounts in grace state.
Instructions
Toggle a billing account's lease_perpetual escape hatch (v1.57+). When lease_perpetual: true, the account never advances past active regardless of lease expiry; every project on the account inherits the pinned state. Enabling on a grace-state account (past_due / frozen / dormant) reactivates inline and returns reactivated: true. Platform-admin only — uses the configured allowance wallet for admin auth. Replaces the v1.56 pin_project (gateway endpoint /projects/v1/admin/:id/pin was removed in v1.57). Calls POST /billing-accounts/v1/admin/:id/lease-perpetual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| billing_account_id | Yes | The billing account ID to toggle. Format: ba_…. Platform-admin only — uses the configured allowance wallet for admin auth; project owners with a non-admin SIWX wallet will receive 403 admin_required. | |
| lease_perpetual | Yes | true → pin every project on the account (account never advances past 'active' regardless of lease expiry). false → resume normal lifecycle advancement. Enabling on a grace-state account reactivates inline (response includes `reactivated: true`). Replaces the v1.56 per-project pin (gateway endpoint /projects/v1/admin/:id/pin was removed in v1.57). |