Delete Product Category
Delete a product category.
Endpointโ
DELETE /v1/product-categories/{id}
Authenticationโ
Requires an API key with the products:write scope.
Parametersโ
| Parameter | Type | Location | Description |
|---|---|---|---|
id | integer | path | The category ID |
Responseโ
Success (204 No Content)โ
Returns no content on successful deletion.
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks products:write scope |
| 404 | resource_not_found | Category does not exist |
| 409 | conflict | Category cannot be deleted (has products or child categories) |
Example Requestโ
curl -X DELETE "https://app.equipdash.com/api/v1/product-categories/3" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."
Important Notesโ
- A category with products assigned to it may not be deletable
- A category with child categories may need to have children removed first
- This action cannot be undone