---
title: "Lay out cards that already exist"
method: POST
path: "/boards/{id}/arrange"
---

# Lay out cards that already exist

`POST /boards/{id}/arrange`

## Request

- Base URL: `https://clusters.soleilpictures.com/api/v1`
- URL: `https://clusters.soleilpictures.com/api/v1/boards/{id}/arrange`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `layout` 'justified' | 'masonry' | 'grid' | 'row' | 'column': justified (default) fits rows flush on both edges
  - `card_ids` string[]: Omit to arrange the whole board
  - `gap` number
  - `width` number: Block width to solve against
  - `row_height` number: Target row height, justified only
  - `columns` number: Column cap, grid and masonry only
  - `dry_run` boolean: Compute the layout and write nothing

## Response `200`

Success

- object

## Other responses

- `400` (unresolved $ref)
- `403`: The token lacks the scope, or the account cannot reach that thing.
- `404`: No such thing — including things this account cannot see.

---

[API](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api.md) · [All operations](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api/revisions/1d426d587bf3?raw)
