Delete product
What this does: Soft deletes a catalog product. The product is marked as deleted but not permanently removed from the database. This allows for data recovery if needed.
Important:
- Only catalog products can be deleted through this endpoint (products without projectId or taskId)
- Products that are assigned to projects or tasks cannot be deleted here
- The product must exist in your workspace
After deletion:
- The product will no longer appear in the product catalog list
- It will not be available for selection in projects, tickets, or quotes
- Historical data (e.g., invoices that used this product) remains intact
Response: Returns a success confirmation.
DELETE
/administration/product-catalog/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/administration/product-catalog/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/administration/product-catalog/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/administration/product-catalog/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions