Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Reorder todos within an item

Updates the sort order of todos within a library component item. All todo IDs in newSortOrder must belong to the specified item. Only library component items are accessible.

POST/administration/project-components/item-details/{itemId}/todos/sort
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
itemIdstringrequired

Component item UUID. Items are the building blocks within components (Epics, Work Packages, Todo Lists, Test Suites).

Request body
requiredapplication/json
newSortOrderstring[]required

Array of todo IDs in the new sort order

Responses
200
idstring

ID of the updated todo

successbooleanrequired

Operation success status

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "https://leadtime.app/api/public/administration/project-components/item-details/3047983b-d798-4aff-8dd4-628cf1900703/todos/sort" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "newSortOrder": [
    "550e8400-e29b-41d4-a716-446655440001",
    "550e8400-e29b-41d4-a716-446655440002"
  ]
}'
Response
{
  "id": "550e8400-e29b-41d4-a716-446655440001",
  "success": true
}