---
title: "Reorder Folders"
method: POST
path: "/api/folders/business/{business_id}/reorder"
tags: ["folders"]
---

# Reorder Folders

`POST /api/folders/business/{business_id}/reorder`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/folders/business/{business_id}/reorder`
- Auth: HTTP bearer

Reorder all folders for a business.

## Path parameters

- `business_id` string, uuid, required

## Request body

- VDRFolderReorder: Reorder all folders for a business.
  - `folder_orders` object, required: Map of folder_id -> new sort_order

## Response `200`

Successful Response

- VDRFolder[]
  - `id` string, uuid, required
  - `advisory_id` string, uuid, required
  - `business_id` string, uuid, required
  - `parent_id` string, uuid, nullable
  - `name` string, required
  - `sort_order` integer, required
  - `is_protected` boolean, required
  - `is_staging` boolean
  - `system_kind` 'staging' | 'generated' | 'emails', nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
