Delete Test Design Result (v1)
Method & Path
DELETE /api/v1/workspace/:workspaceId/labs/tests/:testId/design-result
Actual backend path: /v1/workspace/:workspaceId/labs/tests/:testId/design-result
Description
Soft-delete the test design result for a given test ID.
Authentication
Required: JWT token in Authorization header
Persona Access:
- Workspace Owner: Allowed
- Staff: Allowed (role-based)
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) |
testId | number | Yes | Numeric test ID |
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: Workspace not found, or design result not found
422 Validation Error: Invalid workspace ID or invalid test ID