Last Workspace Cannot Be Deleted

workspace-last-undeletable · 409

الـ workspace هو آخر workspace في منظمته، فأبقته الـ API.

كل الصفحات

لا تستطيع حذف آخر workspace باق في المنظمة. والـ workspace الأول ليس استثناء: أي workspace يحذف ما دام في منظمته workspace غيره.

إضافة إلى الحقول التي في كل خطأ، يضيف هذا النوع workspaceId.

الأسباب الشائعة

  • ليس في المنظمة أي workspace آخر.

كيف تصلح الطلب

  • لكي تحذفه، أنشئ workspace آخر في المنظمة نفسها أولا عبر POST /v1/workspaces (name و organizationId)، ثم احذف هذا.
  • ولكي يتوقف الدفع على ما يعمل فيه، احذف خدماته بدلا من ذلك، إذا وافق المستخدم.

مثال على الرد

json
{
  "type": "workspace-last-undeletable",
  "title": "Last Workspace Cannot Be Deleted",
  "detail": "This is the organization's last workspace. Create another one before deleting it.",
  "workspaceId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "method": "DELETE",
  "instance": "DELETE /v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "status": 409,
  "docs": "https://ghaym.me/docs/errors/workspace-last-undeletable"
}