---
title: "POST /api/database/views/table/{table_id}/order/"
method: POST
path: "/api/database/views/table/{table_id}/order/"
tags: ["Database table views"]
---

# POST /api/database/views/table/{table_id}/order/

`POST /api/database/views/table/{table_id}/order/`

Changes the order of the provided view ids to the matching position that the id has in the list. The order of the not provided views will be set to `0`.

## Path parameters

- `table_id` integer, required

## Headers

- `ClientSessionId` string, uuid
- `ClientUndoRedoActionGroupId` string, uuid

## Request body

- OrderViews
  - `view_ids` integer[], required — View ids in the desired order.

## Response `204`

No response body

## Other responses

- `400`
- `404`

---

[API](https://skmtc.dev/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.dev/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/f3396317d932/schema)
