Reorder questions within a library component item
Reorders questions within a component library item by providing a new sort order array of question IDs.
What are Questions? Questions capture customer-specific requirements or project details. They are attached to component items and displayed in the order specified by their sort field.
All question IDs in the newSortOrder array must belong to the specified item. Only library component items (component.projectId is null) are accessible through this endpoint.
POST
/administration/project-components/item-details/{itemId}/questions/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
itemIdstringrequiredComponent item UUID. Items are the building blocks within components (Epics, Work Packages, Todo Lists, Test Suites).
Request body
requiredapplication/jsonnewSortOrderstring[]requiredArray of question IDs in new order. All questions for the item must be included in the desired display order.
Responses
200Questions reordered successfully
successboolean401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/project-components/item-details/3047983b-d798-4aff-8dd4-628cf1900703/questions/sort" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"newSortOrder": [
"e57dc37b-7693-4d06-b49c-17084b773aff",
"f68ed48c-8704-5e17-c5ad-28195c884b00"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/project-components/item-details/3047983b-d798-4aff-8dd4-628cf1900703/questions/sort", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"newSortOrder": [
"e57dc37b-7693-4d06-b49c-17084b773aff",
"f68ed48c-8704-5e17-c5ad-28195c884b00"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/project-components/item-details/3047983b-d798-4aff-8dd4-628cf1900703/questions/sort",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"newSortOrder": [
"e57dc37b-7693-4d06-b49c-17084b773aff",
"f68ed48c-8704-5e17-c5ad-28195c884b00"
]
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions