Restore default product categories
Restores the default product categories provided by Leadtime. This resets categories to the original system defaults.
What are default categories? Leadtime provides pre-configured categories such as:
- External Costs (Additional Services)
- Software (Our Software)
- Hardware (The Hardware products we sell)
- Consulting (Our general consulting services)
How it works:
- System default categories are restored
- Optionally keep custom categories you created (set keepCustom to true)
- If keepCustom is false, all custom categories are removed
- Default categories include multilingual translations (English and German)
When to use:
- You want to start fresh with default categories
- You made changes and want to revert to defaults
- You want a clean starting point for product organization
Note: This endpoint requires the manageSettings permission. Use keepCustom: true to preserve your custom categories while restoring defaults. This action cannot be undone, so consider the impact on existing products.
POST
/administration/product-categories/restore-defaultsAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonkeepCustombooleanWhether to preserve custom (user-created) product categories when restoring default categories. If true, system default categories are restored while keeping any custom categories you created. If false (default), all custom categories are removed and only system defaults are restored. System default categories include: External Costs, Software, Hardware, and Consulting with multilingual translations.
default: false
Responses
200Product categories restored to defaults successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/product-categories/restore-defaults" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"keepCustom": false
}'const response = await fetch("https://leadtime.app/api/public/administration/product-categories/restore-defaults", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"keepCustom": false
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/product-categories/restore-defaults",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"keepCustom": False
},
)Response
Product categories restored to defaults successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions