Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Reorder project statuses

Updates the display order of project statuses by providing an ordered array of status IDs.

How it works:

  1. Provide an array of status IDs in the desired display order
  2. The first ID in the array will have sort order 0, second will have 1, etc.
  3. Statuses not included in the array will maintain their current sort order

Example: If you provide [“status-3”, “status-1”, “status-2”], then:

  • status-3 will appear first
  • status-1 will appear second
  • status-2 will appear third

Note: This affects the order in which statuses appear in dropdowns and lists throughout the application.

POST/administration/project-settings/statuses/sort
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
idsstring[]required
Array of project status IDs in the desired order
Responses
200Project statuses reordered successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/project-settings/statuses/sort" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "status-1",
    "status-2",
    "status-3"
  ]
}'
Response
Project statuses reordered successfully