Reorder task types
Updates the display order of task types.
How it works: Provide an array of task type 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 ["type-feature", "type-bug", "type-support"], the task types will be displayed in that order in task type dropdowns and selection lists.
Note: The order affects how task types appear when creating new tasks or filtering by type.
POST
/administration/task-settings/types/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonidsstring[]requiredArray of task type IDs in the desired sort order
Responses
200Task types 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/types/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"type-1",
"type-2",
"type-3"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/task-settings/types/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
"type-1",
"type-2",
"type-3"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/task-settings/types/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
"type-1",
"type-2",
"type-3"
]
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions