Sort test cases within a component item
Reorders test cases within a component item by providing a new sort order array. The sort order determines the display order of test cases in the UI and affects condition evaluation order. All test case IDs in the array must belong to the specified item.
POST
/projects/{projectId}/items/{itemId}/testcases/sortAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstringrequiredProject UUID
itemIdstringrequiredComponent item UUID
Request body
requiredapplication/jsonnewSortOrderstring[]requiredArray of test case IDs in desired order
Responses
200
Test cases successfully sorted
successboolean400
Invalid projectId, itemId, or test case IDs format
401
Unauthorized - Invalid or missing authentication token
403
Insufficient permissions or no access to project
404
Project or item not found, or item does not belong to the project