---
title: "Reorder Blocks"
method: POST
path: "/api/blocks/page/{page_id}/reorder"
tags: ["blocks"]
---

# Reorder Blocks

`POST /api/blocks/page/{page_id}/reorder`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/blocks/page/{page_id}/reorder`
- Auth: HTTP bearer

## Path parameters

- `page_id` string, uuid, required

## Request body

- BlockReorder
  - `block_ids` string[], required

## Response `200`

Successful Response

- BlockResponse[]
  - `type` 'text' | 'checklist' | 'table' | 'react_flow' | 'agent_control' | 'tree' | 'ctlsurf_task' | 'page_summary' | 'file' | 'mindmap' | 'datastore' | 'state' | 'log' | 'presentation', required
  - `title` string, nullable
  - `props` object
  - `id` string, uuid, required
  - `page_id` string, uuid, required
  - `order` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
