# Reorder a page's columns

Sets the left-to-right order of a page's columns. `order` must list EVERY column id on the page — a partial list is refused with 'order must list every column id' rather than half-applied — and each column's position becomes its index in that list. Answers 204. Workspace admin.

Access class: `def:admin`.

## Endpoint

`PUT /v1/definitions/{key}/columns/order`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "order": [
      "string"
    ]
  },
  "params": {
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
