Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Move/reorder items in project component tree

Allows reordering components and items at the same level, reparenting items to different components or parent items, and moving items between components (automatically updates componentId for all descendants). Automatically handles side-effects including conditions recalculation, configurationChanged flag updates, summary generation checks, and timeframe updates.

POST/projects/{projectId}/components/tree/sort
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstringrequired
Request body
requiredapplication/json
object
Responses
200Tree structure updated successfully
messagestring
successboolean
400Invalid request format, invalid UUIDs, or invalid type values
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to manage components or access to project denied
404Project not found or component/item not found in project
Request
curl -X POST "https://leadtime.app/api/public/projects/string/components/tree/sort" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
{
  "message": "Products sort updated successfully",
  "success": true
}