---
search:
  tags:
    - administration
    - POST
seo:
  description: >-
    Updates the display order of product categories by… Reference for the POST
    /administration/product-categories/sort endpoint in the Leadtime Public API
    API.
sidebar:
  badge: POST
  label: Reorder product categories
title: Reorder product categories
type: openapi-operation
---
Updates the display order of product categories by providing an ordered list of category IDs.

**How to reorder categories:**
1. Get the current list of categories using GET /administration/product-categories
2. Create an array of category IDs in the desired display order
3. Send the ordered array in the request body

**Example:**
If you want categories in order: Hardware, Software, Consulting
Provide: ["hardware-id", "software-id", "consulting-id"]

**What happens:**
- Categories are reordered according to the provided array
- First ID in array becomes first category, second ID becomes second, etc.
- Sort order is updated for all categories in the workspace

**Note:** This endpoint requires the manageSettings permission. The order affects how categories appear in dropdowns and lists throughout the application.

<Operation source="api-reference" id="productcategoriescontroller-sortproductcategories" />
