Delete Product Filter
Permanently deletes a product filter and removes it from your storefront.
HTTP Request
- URL:
/productFilter/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_WRITE_PRODUCT
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the product filter to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/productFilter/6704b8e2c9a1d2e3f4a5b6c7' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The product filter was deleted successfully.
- 400 Bad Request: The access token is missing or invalid, or the product filter ID is not valid.
Sample JSON Response
{
"success": true,
"message": "ProductFilter deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the request succeeded. |
message | String | Confirmation message. |
Notes
- Deleting a product filter cannot be undone. To hide a filter but keep its settings, set its status to
falsewith Update Product Filter Status.