---
title: "POST /api/database/views/{view_id}/group_bys/prioritize/"
method: POST
path: "/api/database/views/{view_id}/group_bys/prioritize/"
tags: ["Database table view groupings"]
---

# POST /api/database/views/{view_id}/group_bys/prioritize/

`POST /api/database/views/{view_id}/group_bys/prioritize/`

Updates the priority of the provided view group by ids to the matching position that the id has in the list. The group by with the lowest position in the list is applied first when ordering rows.

## Path parameters

- `view_id` integer, required

## Headers

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

## Request body

- PrioritizeViewGroupBys
  - `view_group_by_ids` integer[], required — View group by ids in the desired priority order. The group by with the lowest position in the list is applied first.

## 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)
