Delete Test Sample (v1)
Method & Path
DELETE /api/v1/workspace/:workspaceId/labs/test-samples/:testSampleId
Actual backend path: /v1/workspace/:workspaceId/labs/test-samples/:testSampleId
Description
Delete a test sample from the workspace. This performs a soft delete.
Authentication
Required: JWT token in Authorization header
Required Permissions:
labs.manage
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier (MongoDB ObjectId) |
testSampleId | string | Yes | Test sample identifier (MongoDB ObjectId) |
Response 204 No Content
No response body.
Common Errors
401 Unauthorized: Missing or invalid authentication token
403 Forbidden: Insufficient permissions (labs.manage required)
404 Not Found: Test sample or workspace not found
422 Validation Error: Invalid workspace ID or test sample ID format