Reorder task statuses
Updates the display order of task statuses.
How it works: Provide an array of task status IDs in the desired order. The first ID in the array will have sort order 1, the second will have sort order 2, and so on.
Example:
If you provide ["status-new", "status-in-progress", "status-done"], the statuses will be displayed in that order in Kanban boards, dropdowns, and status lists.
Note: The order affects how statuses appear in task workflows and visual boards. Typically, you want statuses ordered to reflect the natural workflow progression.
POST
/administration/task-settings/statuses/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonidsstring[]requiredArray of task status IDs in the desired order
Responses
200Task statuses reordered successfully
successboolean401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/task-settings/statuses/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"status-1",
"status-2",
"status-3"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/task-settings/statuses/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
"status-1",
"status-2",
"status-3"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/task-settings/statuses/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
"status-1",
"status-2",
"status-3"
]
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions