Reorder project categories
Updates the display order of project categories by providing an ordered array of category IDs.
How it works:
- Provide an array of category IDs in the desired display order
- The first ID in the array will have sort order 0, second will have 1, etc.
- Categories not included in the array will maintain their current sort order
Example: If you provide [“cat-3”, “cat-1”, “cat-2”], then:
- cat-3 will appear first
- cat-1 will appear second
- cat-2 will appear third
Note: This affects the order in which categories appear in dropdowns and lists throughout the application.
POST
/administration/project-settings/categories/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonidsstring[]requiredArray of project category IDs in the desired order
Responses
200Project categories 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/categories/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"category-1",
"category-2",
"category-3"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/project-settings/categories/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
"category-1",
"category-2",
"category-3"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/project-settings/categories/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
"category-1",
"category-2",
"category-3"
]
},
)Response
Project categories reordered successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions