Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

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:

  1. System default categories are restored
  2. Optionally keep custom categories you created (set keepCustom to true)
  3. If keepCustom is false, all custom categories are removed
  4. 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-defaults
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
keepCustomboolean
Whether 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
}'
Response
Product categories restored to defaults successfully