Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Recalculate all estimates for a library component

Recalculates time estimates for all items (epics and non-epics) within a library component. This includes:

  • Recalculating individual item estimates based on timeFrame and question multipliers/extra hours
  • Recalculating epic estimates by summing their children’s estimates
  • Updating the component’s totalTimeFrame
  • Respecting visibility conditions (items with invalid conditions are excluded)

Items are processed bottom-up (children first, then parents) to ensure accurate calculations. Only library components (projectId is null) can be recalculated through this endpoint.

POST/administration/project-components/components/{id}/recalculate-estimates
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Component UUID
Responses
200Estimates recalculated successfully
successbooleanrequired
Operation success flag
400Invalid component ID format (not a valid UUID)
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to edit component library
404Component not found or does not belong to library (has projectId)
Request
curl -X POST "https://leadtime.app/api/public/administration/project-components/components/e57dc37b-7693-4d06-b49c-17084b773aff/recalculate-estimates" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}