Workspaces

Leave a workspace

Changed on

Removes the caller's own active membership row. Session-only — Personal Access Tokens cannot leave a workspace. Blocked server-side when the caller has no other active membership, or is the workspace's only active owner. On success, the caller's workspace-scoped PATs for the left workspace are revoked. If the left workspace was the caller's active one, the response carries the newly re-resolved active workspace (oldest remaining membership first) and the bk_active_ws cookie is rotated in the same response.

delete/api/v1/workspaces/{id}/membership

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/v1/workspaces/{id}/membership
  • Auth: API key in cookie sb-fmbpikzpkafptqximhxn-auth-token

Path parameters

idstring uuid required

Response

Left the workspace.

newActiveWorkspaceIdstring uuid nullable required
newActiveWorkspaceNamestring nullable required

Changes

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status