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/archive

Path parameters

workspace_idstringrequired

The workspace's ID.

Response

(object)Workspaceoptional

The archived [workspace object](/api-reference/admin/workspaces#the- workspace-object).

Errors

StatusReason
400The workspace is the Default Workspace, or already archived.
404No workspace with this ID exists in your organization.
409The workspace holds a Launchpad app. Delete the app first.