---
title: "Reorder Sections"
method: POST
path: "/v1/projects/{project_id}/context/sections/reorder"
tags: ["project-context"]
---

# Reorder Sections

`POST /v1/projects/{project_id}/context/sections/reorder`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/context/sections/reorder`
- Auth: none declared

Set the section order (ContextWriter — context:write). Reorder is metadata — it recomputes
the assembly/mirror but writes no history row.

## Path parameters

- `project_id` string, required

## Request body

- SectionReorderIn
  - `section_ids` string[], required: section uuids in the desired order

## Response `200`

Successful Response

- SectionsListOut
  - `v` integer
  - `items` SectionLightOut[], required
    - `uuid` string, required
    - `title` string, required
    - `type` string, required
    - `languages` string[], required
    - `position` integer, required
    - `updated_at` string, date-time, nullable
  - `total` integer, required

## Other responses

- `422`: Validation Error

---

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