Skip to main content

Delete Lab Coupon (v1)

Method & Path

DELETE /api/v1/workspace/:workspaceId/labs/coupons/:couponId

Actual backend path: /v1/workspace/:workspaceId/labs/coupons/:couponId

Description

Delete a lab coupon from the workspace. This performs a soft delete.

Authentication

Required: JWT token in Authorization header

Required Permissions:

  • labs.manage

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier (MongoDB ObjectId)
couponIdstringYesLab coupon 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: Lab coupon or workspace not found

422 Validation Error: Invalid workspace ID or coupon ID format