# `workspace.archive` Archive a workspace: its tokens are revoked and (optionally) its draft discarded. Open proposals stay reviewable. - **scope**: `agents:admin` - **storefront-visible** (bumps the catalog generation): no - **destructive**: yes — supports dryRun preview ## Payload | field | type | required | notes | |---|---|---|---| | `workspaceId` | string (/^ws_[0-9A-HJKMNP-TV-Z]{26}$/) | yes | | | `discardDraft` | boolean (default false) | no | | ### JSON Schema ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "workspaceId": { "type": "string", "pattern": "^ws_[0-9A-HJKMNP-TV-Z]{26}$" }, "discardDraft": { "default": false, "type": "boolean" } }, "required": [ "workspaceId" ], "additionalProperties": false } ```