Sort todos within an item
Reorders todos within a component item by providing a new sort order array. The sort order determines the display order of todos in the UI and affects condition evaluation order. All todos in the newSortOrder array must belong to the specified item. This operation automatically recalculates conditions if needed and marks the project configuration as changed.
POST
/projects/{projectId}/items/{itemId}/todos/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstringrequiredProject UUID
itemIdstringrequiredComponent item UUID
Request body
requiredapplication/jsonnewSortOrderstring[]requiredArray of todo item IDs in the desired sort order
Responses
200
Todos successfully reordered
successboolean400
Invalid projectId, itemId, or todo IDs in sort order
401
Unauthorized - Invalid or missing authentication token
403
Insufficient permissions or no access to project
404
Item not found or does not belong to the specified project