---
title: "Save a view of a table, as the builder"
description: "A view visible to you alone."
canonical: "https://grid82.com/docs/builder-api/data/views-create"
updated: "2026-11-13"
---

# Save a view of a table, as the builder

`POST https://studio.grid82.app/v1/apps/{appId}/tables/{tableId}/views`

A view visible to you alone.

`config` fills in defaults for whatever is left out: an empty filter, no sorts, nothing hidden. Pass its id as `viewId` to apps.records.list to read through it.

Requires the `records:write` scope. Operation `apps.views.create`. MCP tool `apps_views_create`. CLI: `grid82 apps views create` (`npx grid82`).

## Path parameters

| Name      | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `appId`   | string | yes      |             |
| `tableId` | string | yes      |             |

## Headers

| Name              | Type   | Required | Description                                                                                                                                                                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Idempotency-Key` | string | no       | Any unique string. Sending the same key with the same request again returns the first response (marked `Idempotency-Replayed: true`) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |

## Request body

| Field    | Type   | Required | Description          |
| -------- | ------ | -------- | -------------------- |
| `name`   | string | yes      | Up to 50 characters. |
| `config` | object | no       |                      |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**201**: Success

- `data` (`object`, required)
- `data.id` (`string`, required, length: `1–64 chars`)
- `data.name` (`string`, required, length: `1–120 chars`)
- `data.filter` (`object`, required)
- `data.filter.id` (`string`, required, length: `1–64 chars`)
- `data.filter.kind` (`string`, required)
- `data.filter.mode` (`enum<string>`, required, one of: `and, or`)
- `data.filter.children` (`object[]`, required, items: `≤ 50 items`)
- `data.filter.children.id` (`string`, required, length: `1–64 chars`)
- `data.filter.children.kind` (`string`, required)
- `data.filter.children.fieldId` (`string`, required, pattern: `^[a-z][a-z0-9_]{0,62}$`)
- `data.filter.children.op` (`enum<string>`, required, one of: `contains, not_contains, starts_with, ends_with, is, is_not, is_empty, is_not_empty, gt, lt, gte, lte, before, after, on_or_before, on_or_after, is_any_of, is_none_of, has_any_of, has_all_of, has_none_of, is_checked, is_unchecked`)
- `data.filter.children.value` (`object`)
- `data.sorts` (`object[]`, required, default: `[]`, items: `≤ 10 items`)
- `data.sorts.fieldId` (`string`, required, pattern: `^[a-z][a-z0-9_]{0,62}$`)
- `data.sorts.desc` (`boolean`, required)
- `data.groupBy` (`object[]`, required, default: `[]`, items: `≤ 3 items`)
- `data.groupBy.fieldId` (`string`, required, pattern: `^[a-z][a-z0-9_]{0,62}$`)
- `data.groupBy.desc` (`boolean`, required)
- `data.hidden` (`string[]`, required, default: `[]`)
- `data.order` (`string[]`)
- `data.rowHeight` (`enum<string>`, required, default: `short`, one of: `short, medium, tall, extraTall`)
- `data.search` (`string`, required, default: ``, length: `≤ 200 chars`)
- `data.summaries` (`Record<string, enum<string> | null>`, required, default: `{}`)
- `data.where` (`string`, length: `≤ 4000 chars`)
- `data.repaired` (`object`)
- `data.repaired.at` (`string`, required)
- `data.repaired.removed` (`string[]`, required, items: `≤ 50 items`)
- `data.repaired.note` (`string`, required, length: `≤ 400 chars`)
- `data.tableId` (`string`, required, pattern: `^[a-z][a-z0-9_]{0,62}$`)
- `data.position` (`integer`, required)
- `data.createdAt` (`string`, required)
- `data.updatedAt` (`string`, required)

```json
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "filter": {
      "id": "root",
      "kind": "group",
      "mode": "and",
      "children": []
    },
    "sorts": [],
    "groupBy": [],
    "hidden": [],
    "order": [
      "<string>"
    ],
    "rowHeight": "short",
    "search": "",
    "summaries": {},
    "where": "<string>",
    "repaired": {
      "at": "<string>",
      "removed": [
        "<string>"
      ],
      "note": "<string>"
    },
    "tableId": "<string>",
    "position": 123,
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request POST \
  --url 'https://studio.grid82.app/v1/apps/<appId>/tables/<tableId>/views' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
```
