Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

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/sort
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
idsstring[]required

Array of task type IDs in the desired sort order

Responses
200

Task types reordered successfully

successboolean
401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Bodyapplication/json
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"
  ]
}'
Response
{
  "success": true
}