---
title: "Reorder blocks"
method: PATCH
path: "/api/v1/sites/{subdomain}/pages/{pagePath}/blocks/reorder"
tags: ["sites"]
---

# Reorder blocks

`PATCH /api/v1/sites/{subdomain}/pages/{pagePath}/blocks/reorder`

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}/pages/{pagePath}/blocks/reorder`
- Auth: HTTP bearer

`blockIds` must list every block id exactly once.

## Request body

- ReorderBlocksRequest
  - `blockIds` string[], required: New order; must match current set exactly

## Response `200`

- object
  - `success` boolean

## Other responses

- `400`: Validation or conflict error
- `401`: Missing or invalid credentials
- `403`: Not allowed for this resource
- `404`: Resource not found

---

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