# Save a view on a board

Saves one filter, sort and set of visible columns under a name. `scope` is `user` (the caller's own, the default) or `workspace` (everyone's, which takes manage on the board); `key` is a slug and `label` is what people see. The pack-page twin is `post_definitions_key_views`.

Access class: `board:read`.

## Endpoint

`POST /v1/boards/{id}/views`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "columnIds": [
      "string"
    ],
    "filter": {},
    "key": "string",
    "label": "string",
    "scope": "user",
    "sort": {}
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "columnIds": [
      "string"
    ],
    "crmUserId": 1.5,
    "filter": {},
    "id": "",
    "key": "string",
    "label": "string",
    "position": 1.5,
    "scope": "string",
    "sort": {}
  }
}
```

### 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"
}
```
