---
search:
  tags:
    - administration
    - POST
seo:
  description: >-
    Updates the sort order… Reference for the POST
    /administration/project-components/item-details/{itemId}/testcases/sort
    endpoint in the Leadtime Public API API.
sidebar:
  badge: POST
  label: Reorder testcases within an item
title: Reorder testcases within an item
type: openapi-operation
---
Updates the sort order of test cases within a library component item. Provide an array of testcase IDs in the desired order. Only library component test cases can be reordered.

<Operation source="api-reference" id="componentlibrarycontroller-sorttestcases" />
