Skip to main content
DELETE
/
workspaces
/
{workspaceId}
Archive a workspace
curl --request DELETE \
  --url https://api.altostrat.io/workspaces/{workspaceId} \
  --header 'Authorization: Bearer <token>'
{
  "type": "conflict_error",
  "code": "workspace_not_empty",
  "message": "Cannot archive workspace because billing account 'Main Billing' has active subscriptions: sub_123, sub_456. Please cancel or transfer these subscriptions before archiving.",
  "doc_url": "https://docs.altostrat.io/errors/workspace_not_empty"
}

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

Response

The workspace was successfully archived.