---
title: "Cancel organization erasure during its reversible window"
method: POST
path: "/v1/organization/restore"
---

# Cancel organization erasure during its reversible window

`POST /v1/organization/restore`

## Request

- Base URL: `https://docs.greatwait.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.greatwait.dev/v1/organization/restore`
- Auth: HTTP bearer

Restores access after every configured scheduling shard acknowledges the new generation. Immediate erasure and expired reversible windows cannot be restored. Recovery preserves each schedule's pause and lateness policy and does not reauthorize automatic top-up.

## Request body

- object
  - `expectedGeneration` integer, required

## Response `200`

Cancel organization erasure during its reversible window

- object
  - `organizationId` string, required
  - `generation` integer, required
  - `phase` 'active' | 'closing' | 'closed' | 'restoring' | 'purging' | 'erased', required
  - `requestedAt` string, nullable, required
  - `reversibleUntil` string, nullable, required
  - `purgeDeadline` string, nullable, required
  - `immediate` boolean, required
  - `converged` boolean, required

## Other responses

- `400`: Problem document. Possible codes at this status: invalid_request.
- `401`: Problem document. Possible codes at this status: authentication_required, credential_expired, credential_revoked.
- `403`: Problem document. Possible codes at this status: scope_missing.
- `404`: Problem document. Possible codes at this status: not_found.
- `409`: Problem document. Possible codes at this status: state_conflict, version_conflict.
- `429`: Problem document. Possible codes at this status: rate_limited.
- `503`: Problem document. Possible codes at this status: capability_not_configured, service_unavailable.

---

[API](https://skmtc.dev/greatwait/apis/greatwait-v1.md) · [All operations](https://skmtc.dev/greatwait/apis/greatwait-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/greatwait/apis/greatwait-v1/revisions/6855bce23e72?raw)
