Archive Workspace
Archive a workspace and every API key in it.
Archive a workspace. Every API key in it is archived at the same time and stops working on its next request. Archived workspaces and their keys stay readable for auditing.
Archiving is permanent
An archived workspace can't be renamed, given members or restored, and its API keys can't be switched back on.
POST /v1/organizations/workspaces/:workspace_id/archivePath parameters
workspace_idstringrequiredThe workspace's ID.
Response
(object)WorkspaceoptionalThe archived [workspace object](/api-reference/admin/workspaces#the- workspace-object).
Errors
| Status | Reason |
|---|---|
400 | The workspace is the Default Workspace, or already archived. |
404 | No workspace with this ID exists in your organization. |
409 | The workspace holds a Launchpad app. Delete the app first. |