Skip to main content

Delete Test Group (v1)

Method & Path

DELETE /api/v1/workspace/:workspaceId/labs/test-groups/:testGroupId

Actual backend path: /v1/workspace/:workspaceId/labs/test-groups/:testGroupId

Description

Delete (soft delete) a test group. This sets the deletedAt timestamp but does not permanently remove the record.

Authentication

Required: JWT token in Authorization header

Required Permissions:

  • labs.manage

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier (MongoDB ObjectId)
testGroupIdstringYesTest group identifier (MongoDB ObjectId)

Response 204 No Content

No response body.

Common Errors

  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: Insufficient permissions (requires labs.manage)
  • 404 Not Found: Workspace or test group not found
  • 500 Internal Server Error: Server error