Delete Product Option (v1)
Method & Path
DELETE /api/v1/workspace/:workspaceId/storefront/product-options/:optionId
Actual backend path: /v1/workspace/:workspaceId/storefront/product-options/:optionId
Description
Delete a store-level product option. Products that reference this option will keep the option data denormalized; consider updating those products if needed.
Authentication
Required: JWT token in Authorization header.
Required Permissions: store.products.manage
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
optionId | string | Yes | Product option identifier |
Response 200 OK
{
"deleted": true
}
Common Errors
- 400 Bad Request: Invalid optionId
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Workspace, store, or product option not found
- 500 Internal Server Error: Server error