Delete product category
Deletes a product category using soft delete. The category is marked as deleted but not permanently removed.
What happens when deleting:
- Category is marked as deleted (soft delete)
- Category will no longer appear in lists
- Products assigned to this category may need to be reassigned
- Category can potentially be restored if needed
Note: This endpoint requires the manageSettings permission. Consider the impact on existing products before deleting a category. Returns 404 if the category does not exist.
DELETE
/administration/product-categories/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200Product category deleted successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/administration/product-categories/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/administration/product-categories/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/administration/product-categories/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
Product category deleted successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions