Skip to main content

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

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier
optionIdstringYesProduct 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