Reorder work activities
Updates the display order of work activities.
How it works: Provide an array of work activity 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 ["activity-2", "activity-1", "activity-3"], the activities will be displayed in that order in time tracking dropdowns.
Note: The order affects how activities appear in time entry forms and reports.
POST
/administration/task-settings/activities/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonidsstring[]requiredArray of work activity IDs in the desired order
Responses
200Work activities reordered successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/task-settings/activities/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"123e4567-e89b-12d3-a456-426614174000",
"987fcdeb-51a2-43d7-b456-426614174000"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/task-settings/activities/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
"123e4567-e89b-12d3-a456-426614174000",
"987fcdeb-51a2-43d7-b456-426614174000"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/task-settings/activities/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
"123e4567-e89b-12d3-a456-426614174000",
"987fcdeb-51a2-43d7-b456-426614174000"
]
},
)Response
Work activities reordered successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions