---
title: "Reorder charts"
method: PUT
path: "/v0/boards/{boardId}/charts/reorder"
tags: ["Charts"]
---

# Reorder charts

`PUT /v0/boards/{boardId}/charts/reorder`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/boards/{boardId}/charts/reorder`
- Auth: HTTP bearer

Sets the display order of a board's charts to the given id list. Charts omitted from `chartIds` keep their relative order after the listed ones. Duplicate or unknown chart ids are rejected.

## Path parameters

- `boardId` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `chartIds` string[], required: Chart ids in the desired display order.

## Response `204`

Charts reordered

## Other responses

- `400`: The request was rejected. `code` is either `INVALID_VALIDATION_REQUEST` (Zod schema mismatch; `details` carries a `{ fieldPath: message }` map) or `BAD_REQUEST` (semantic validation failure outside Zod, e.g. mismatched IDs, business-rule violations). Branch on `code`, not status, to tell the two apart.
- `409`: The request conflicts with current resource state, or an `Idempotency-Key` request with the same key is currently in flight.

---

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